GO-2026-4980

Source
https://pkg.go.dev/vuln/GO-2026-4980
Import Source
https://vuln.go.dev/ID/GO-2026-4980.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-4980
Aliases
Related
Published
2026-05-07T19:21:40Z
Modified
2026-05-11T08:11:24.291670396Z
Summary
Escaper bypass leads to XSS in html/template
Details

If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2026-4980",
    "review_status": "REVIEWED"
}
References
Credits
    • Mundur (https://github.com/M0nd0R)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25.10
Introduced
1.26.0-0
Fixed
1.26.3

Ecosystem specific

{
    "imports": [
        {
            "symbols": [
                "Template.Execute",
                "Template.ExecuteTemplate",
                "isJSType"
            ],
            "path": "html/template"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-4980.json"