golang.org/x/net/html Improper Validation of Array Index vulnerability
Date: 2022-05
Affected: go/golang.org/x/net
Attack vector: other
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2018-17847
CVE-2018-17848
CWE: CWE-119
CWE-129
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):