Errors returned from JSON marshaling may break template escaping in html/template
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2024-24785US | — | — | ||
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… | ||||
02
references
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2024/03/08/4WEB
- https://go.dev/cl/564196WEB
- https://go.dev/issue/65697WEB
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbgWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-24785WEB
- https://pkg.go.dev/vuln/GO-2024-2610WEB
- https://security.netapp.com/advisory/ntap-20240329-0008/WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan