What’s Vulnerable › Vulnerabilities
CVE-2026-97030: Recognize yield as regexp preceder keyword in html/template
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-08 · updated 2026-10-15
- Weakness: CWE-79
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.
Affected products
- Go Stdlib: before 1.26.9; from 1.27.0-0 before 1.27.2 — fixed in 1.26.9, 1.27.2
- Go standard library html/template: before 1.26.9; from 1.27.0-0 before 1.27.2 — fixed in 1.26.9, 1.27.2
How to fix
Upgrade to a fixed version: Go Stdlib 1.26.9, 1.27.2; Go standard library html/template 1.26.9, 1.27.2. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/840925
- https://go.dev/issue/81823
- https://groups.google.com/g/golang-announce/c/U2fTuyDJznI
- https://pkg.go.dev/vuln/GO-2026-6600
Get alerted when CVE-2026-97030 or the next vulnerability affects your stack