GO-2023-2043

Source
https://pkg.go.dev/vuln/GO-2023-2043
Import Source
https://vuln.go.dev/ID/GO-2023-2043.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-2043
Aliases
Downstream
Related
Published
2023-09-07T16:11:59Z
Modified
2026-02-04T04:11:02Z
Summary
Improper handling of special tags within script contexts in html/template
Details

The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-2043"
}
References
Credits
    • Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.)

Affected packages

Go / stdlib

Package

Name
stdlib
View open source insights on deps.dev
Purl
pkg:golang/stdlib

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.20.8
Introduced
1.21.0-0
Fixed
1.21.1

Ecosystem specific

{
    "imports": [
        {
            "path": "html/template",
            "symbols": [
                "Template.Execute",
                "Template.ExecuteTemplate",
                "escaper.escapeText",
                "indexTagEnd",
                "tSpecialTagEnd"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2023-2043.json"