CVE-2026-94448 Reset context tracking on consecutive template expressions in html/template
Attackers can inject malicious scripts via JavaScript template literals due to improper context tracking in the Go html/template library.
- 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-94448?
CVE-2026-94448 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
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-94448?
2 open source packages ship an affected version, including golang and stdlib.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.26.9, 1.27.2 |
stdlib Go | All versions | 1.26.9, 1.27.2 |
How do I fix CVE-2026-94448?
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-94448 being exploited?
There is no known exploitation of CVE-2026-94448 in the wild and no public exploit code.
Sources
Also known as AZL-107469, AZL-107499, BELL-CVE-2026-94448, BIT-golang-2026-94448, CLEANSTART-2026-AH74711, CLEANSTART-2026-BH19743 and 2204 more.