GO-2026-4865

    Dashboard / Vulnerabilities / GO-2026-4865

    GO-2026-4865

    Published: 7 Apr 2026Last Modified: 10 Jul 2026

    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.

    Affected packages

    Package

    Name: stdlib

    Purl: pkg:golang/stdlib

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.25.9

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High