GO-2026-4603

Source
https://pkg.go.dev/vuln/GO-2026-4603
Import Source
https://vuln.go.dev/ID/GO-2026-4603.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-4603
Aliases
Related
Published
2026-03-06T21:03:42Z
Modified
2026-03-10T10:43:54.330461Z
Summary
URLs in meta content attribute actions are not escaped in html/template
Details

Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh".

A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-4603"
}
References

Affected packages

Go / stdlib

Package

Affected ranges

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

Ecosystem specific

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

Database specific

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