{"id":"CVE-2026-32289","published":"2026-04-08T01:06:56Z","modified":"2026-04-13T18:20:46Z","title":"JsBraceDepth Context Tracking Bugs (XSS) in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, leading to incorrect escaping being applied. These issues could cause actions within JS template literals to be incorrectly or improperly escaped, leading to XSS vulnerabilities.","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.00295,"percentile":0.22693,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/763762","tags":[]},{"url":"https://go.dev/issue/78331","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4865","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":4.54},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"html/template","versions":["< 1.25.9",">= 1.26.0-0, < 1.26.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-13T17:48:22.714020Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.25.9",">=1.26.0-0, <1.26.2"],"patched":["1.25.9","1.26.2"],"from":["GO-2026-4865"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library mishandles context tracking inside JavaScript template literals: context is not carried correctly across template branches, and brace depth is not tracked for actions placed within those literals, so their content may be escaped incorrectly. An attacker who can reach a page rendering such a template, with a victim needing to interact with the page (user interaction required, no authentication or special configuration noted), could inject script that executes in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:05Z"},"euvd":{"id":"EUVD-2026-20018","exploited":false,"provenance":"source"}}