CVE-2026-97030 Recognize yield as regexp preceder keyword in html/template

Medium 6.1 Published Updated

A flaw in Go's html/template package fails to escape the 'yield' keyword, potentially allowing XSS attacks in templates.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-97030?

CVE-2026-97030 is a medium-severity cross-site scripting vulnerability in Go standard library html/template, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A trusted template author may have previously written a valid template wherein the use of the 'yield' keyword would not be correctly escaped. We now ensure that valid keyword uses are escaped and non-keyword uses are not escaped.

Weakness: CWE-79

Which versions are affected by CVE-2026-97030?

2 open source packages ship an affected version, including golang and stdlib.

PackageAffectedFixed in
golang BitnamiAll versions1.26.9, 1.27.2
stdlib GoAll versions1.26.9, 1.27.2

How do I fix CVE-2026-97030?

Upgrade golang to a fixed version for your release line: 1.26.9 or 1.27.2.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-97030 being exploited?

There is no known exploitation of CVE-2026-97030 in the wild and no public exploit code.

Sources

Also known as AZL-108249, AZL-108299, AZL-108348, AZL-108441, AZL-108534, BELL-CVE-2026-97030 and 2206 more.

Is CVE-2026-97030 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free