Skip to main content
← All vulnerabilities
CVE-2026-32289GO-2026-4865BIT-GOLANG-2026-32289

JsBraceDepth Context Tracking Bugs (XSS) in html/template

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.9, 1.26.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • html/template

    fixed in 1.25.9; From 1.26.0-0 · fixed in 1.26.2

  • stdlibGo

    fixed in 1.25.9; From 1.26.0-0 · fixed in 1.26.2

References 4

go.dev

groups.google.com

pkg.go.dev