blob: 325b53e0ec67b92bf2fd832660de9d2bb08a191b [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2024-2610",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2024-24785"
],
"summary": "Errors returned from JSON marshaling may break template escaping in html/template",
"details": "If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.21.8"
},
{
"introduced": "1.22.0-0"
},
{
"fixed": "1.22.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "html/template",
"symbols": [
"Template.Execute",
"Template.ExecuteTemplate",
"escaper.commit",
"jsValEscaper"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/65697"
},
{
"type": "FIX",
"url": "https://go.dev/cl/564196"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg"
}
],
"credits": [
{
"name": "RyotaK (https://ryotak.net)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2024-2610"
}
}