CVE-2026-32289: JsBraceDepth Context Tracking Bugs (XSS) in html/template

Published Apr 8, 2026
·
Updated

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

3 affected components
go/html/template
Golang Go<1.25.9
Golang Go>=1.26.0<1.26.2

Remediation

Event History

Apr 8, 2026
CVE Published
via MITRE·01:06 AM
Data Sourced
via MITRE·01:06 AM
DescriptionWeakness
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 5, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203