What’s Vulnerable › Vulnerabilities
CVE-2026-94448: Reset context tracking on consecutive template expressions 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
When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and 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/839866
- https://go.dev/issue/81821
- https://groups.google.com/g/golang-announce/c/U2fTuyDJznI
- https://pkg.go.dev/vuln/GO-2026-6599
Get alerted when CVE-2026-94448 or the next vulnerability affects your stack