ADVISORIES

Vulnerability

CVE-2018-17848

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.

5 advisories report this vulnerability, across 3 ecosystems.

High severity All Go 3Chainguard 2Wolfi 2

Advisories

  • CGA-hgqp-m7mv-64mq
    CVE-2018-17847CVE-2018-17848 ChainguardWolfi Updated 5 November 2026
  • CGA-x74v-mg9h-qcvj
    CVE-2018-17847CVE-2018-17848 ChainguardWolfi Updated 5 November 2026
  • 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