{"id":"GHSA-4r78-hx75-jjj2","summary":"golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer","details":"The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles `\u003csvg\u003e\u003ctemplate\u003e\u003cdesc\u003e\u003ct\u003e\u003csvg\u003e\u003c/template\u003e`, leading to a `panic: runtime error` (index out of range) in `(*nodeStack).pop` in node.go, called from `(*parser).clearActiveFormattingElements`, during an `html.Parse` call.","aliases":["CVE-2018-17847","CVE-2018-17848","GHSA-mv93-wvcp-7m7r","GO-2022-0197"],"modified":"2026-02-04T03:42:11.883693Z","published":"2022-05-13T01:19:29Z","related":["CGA-r87m-j3pr-78m5"],"database_specific":{"cwe_ids":["CWE-119"],"github_reviewed_at":"2023-02-07T22:44:43Z","github_reviewed":true,"nvd_published_at":"2018-10-01T08:29:00Z","severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17847"},{"type":"WEB","url":"https://github.com/golang/go/issues/27846"},{"type":"PACKAGE","url":"https://github.com/golang/go"},{"type":"WEB","url":"https://go.dev/cl/159397"},{"type":"WEB","url":"https://go.dev/issue/27846"},{"type":"WEB","url":"https://go.googlesource.com/net/+/4b62a64f59f73840b9ab79204c94fee61cd1ba2c"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0197"}],"affected":[{"package":{"name":"golang.org/x/net","ecosystem":"Go","purl":"pkg:golang/golang.org/x/net"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20190125002852-4b62a64f59f7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4r78-hx75-jjj2/GHSA-4r78-hx75-jjj2.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}