Skip to content
OpenAdvisories
High · 7.5 CVE-2018-17847 CVE-2018-17848EUVD-2022-2438GHSA-4r78-hx75-jjj2GHSA-mv93-wvcp-7m7rGO-2022-0197

golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer

Published Oct 1, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Go golang.org/x/net < 0.0.0-20190125002852-4b62a64f59f7 0.0.0-20190125002852-4b62a64f59f7 GHSA-4r78-hx75-jjj2

Advisories 1

References