UNKNOWN Go

JsBraceDepth Context Tracking Bugs (XSS) in html/template

GO-2026-4865 · BIT-golang-2026-32289 · CVE-2026-32289

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes