Vulnerability
CVE-2018-17848
The html package (aka x/net/html) through 2018-09-25 in Go mishandles <math><template><mn><b></template>, leading to a "panic: runtime error" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.
5 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-hgqp-m7mv-64mq
- CGA-x74v-mg9h-qcvj
-
GHSA-4r78-hx75-jjj2
golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer
-
GHSA-mv93-wvcp-7m7r
golang.org/x/net/html Improper Validation of Array Index vulnerability
-
GO-2022-0197
Panic when parsing certain inputs in golang.org/x/net/html
References
- https://github.com/golang/go/issues/27846
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK/