GHSA-4r78-hx75-jjj2

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

At a glance

Published
Updated
CVE
CVE-2018-17847, CVE-2018-17848
Aliases
GHSA-mv93-wvcp-7m7r, GO-2022-0197
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

PackageVersions
Go · golang.org/x/netintroduced 0, fixed 0.0.0-20190125002852-4b62a64f59f7

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database