Skip to main content
VulnerabilityPublished Updated

CVE-2026-97030: Go standard library html/template · Cross-site Scripting

Affects Go standard library html/templateSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium : upgrade to 1.27.2 or 1.26.9 when convenient.

Data as of 22 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.2, 1.26.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Upgrade Go standard library html/template to 1.27.2 or 1.26.9.

Affected software

ProductAffectedFixed in
Go standard libraryhtml/templateAffected
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.27.2
Go standard libraryhtml/templateAffected
  • <1.26.9
Fixed in
  • 1.26.9
Gohtml/templatepkg:golang/html/templateOther threatsAffected
  • <1.26.9
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.26.9
  • 1.27.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in versions 1.26.9 and 1.27.2 and later. Users should upgrade to these or later versions of the Go standard library html/template package to remediate this vulnerability. No other mitigation is indicated.

Description

CVE-2026-97030 is a cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. It involves improper escaping of the 'yield' keyword in templates, where valid uses were not correctly escaped, potentially allowing injection of malicious scripts. The issue affects certain versions of the Go html/template package prior to 1.26.9 and between 1.27.0-0 and 1.27.2. The vulnerability has a medium severity with a CVSS score of 6.1.

References

Community reviews

Loading reviews…