{"id":"CVE-2026-94448","published":"2026-10-08T22:53:57Z","modified":"2026-10-15T15:24:40Z","title":"Reset context tracking on consecutive template expressions in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00289,"percentile":0.21946,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://go.dev/cl/839866","tags":[]},{"url":"https://go.dev/issue/81821","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/U2fTuyDJznI","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-6599","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":4.39},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"html/template","versions":["< 1.26.9",">= 1.27.0-0, < 1.27.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-15T15:22:59.217582Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.26.9",">=1.27.0-0, <1.27.2"],"patched":["1.26.9","1.27.2"],"from":["GO-2026-6599"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library mishandled context tracking when a JavaScript template literal contained consecutive expressions, so the parser did not reset its state when entering each new expression, and subsequent regular expression literals could be misrecognized and left unescaped. An attacker able to supply input that is rendered into such a template can inject script that executes in a victim's browser, but only if the victim interacts with the page (for example by visiting or clicking through to the affected content).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:33Z"},"euvd":{"id":"EUVD-2026-95415","exploited":false,"provenance":"source"}}