Advisory

GHSA-4r78-hx75-jjj2

Also known as: CVE-2018-17847, CVE-2018-17848, GHSA-mv93-wvcp-7m7r, GO-2022-0197

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 <svg><template><desc><t><svg></template>, 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:19 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