CVE-2026-94448
Reset context tracking on consecutive template expressions in html/template
Go standard library html/template
CVSS
6.1MediumExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.20%Chance of exploitation activity in the next 30 days, higher than 9% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 2
- html/templateaffected: all versions before 1.26.9CVE List
- html/templateaffected: 1.27.0-0 before 1.27.2CVE List