ADVISORIES

Vulnerability

CVE-2018-17847

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.

5 advisories report this vulnerability, across 3 ecosystems.

Advisories in Go

  • GHSA-4r78-hx75-jjj2

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

    High CVE-2018-17847CVE-2018-17848 Go Updated 10 September 2026
  • GHSA-mv93-wvcp-7m7r

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

    High CVE-2018-17847CVE-2018-17848 Go Updated 10 September 2026
  • GO-2022-0197

    Panic when parsing certain inputs in golang.org/x/net/html

    CVE-2018-17847CVE-2018-17848 Go Updated 4 February 2026

References