CVE-2026-32289: JsBraceDepth Context Tracking Bugs (XSS) in html/template
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-32289?
CVE-2026-32289 has been classified as a moderate severity vulnerability due to the potential for cross-site scripting (XSS) attacks.
What types of applications are affected by CVE-2026-32289?
CVE-2026-32289 affects applications that use the Go html/template package with specific versions vulnerable to improper context tracking.
How do I fix CVE-2026-32289?
To mitigate CVE-2026-32289, upgrade to a version of Golang Go that is higher than 1.26.2 or at least 1.25.9.
What is the nature of the vulnerability in CVE-2026-32289?
CVE-2026-32289 is an XSS vulnerability resulting from improper tracking of context across template branches in JS template literals.
Can CVE-2026-32289 be exploited remotely?
Yes, CVE-2026-32289 can potentially be exploited remotely, allowing attackers to execute arbitrary script in the user's context.