Advisory

GHSA-mv93-wvcp-7m7r

Also known as: CVE-2018-17847, CVE-2018-17848, GHSA-4r78-hx75-jjj2, GO-2022-0197

Summary

golang.org/x/net/html Improper Validation of Array Index vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:26 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

golang.org/x/net

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20190125002852-4b62a64f59f7 (semver)

Fixed versions

0.0.0-20190125002852-4b62a64f59f7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences