Advisory

GO-2026-4865

Also known as: BIT-golang-2026-32289, CVE-2026-32289

Summary

JsBraceDepth Context Tracking Bugs (XSS) in html/template

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-04-07 22:53 UTC
Modified
2026-10-07 10:41 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.25.9, introduced 1.26.0-0, fixed 1.26.2 (semver)

Fixed versions

1.25.9, 1.26.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences