CVE-2018-17848

golang-org-x-net-html: index out of range in (*insertionModeStack).pop in node.go causes runtime panic during html.Parse() call

Published Oct 1, 2018 CVSS 3.1 · 7.5 High EPSS 2.2% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-4626 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.
Github GHSA Github GHSA GHSA-mv93-wvcp-7m7r golang.org/x/net/html Improper Validation of Array Index vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 10:54 AM
Reserved
Oct 1, 2018, 12:00 AM
Status
Modified
Published
Oct 1, 2018, 8:29 AM
Modified
Jun 17, 2026, 1:46 AM
Severity
Moderate
Public date
Oct 1, 2018, 12:00 AM