GO-2024-2610
Errors returned from JSON marshaling may break template escaping in html/template
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2024-24785
- Alias
- BIT-golang-2024-24785
Description
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.21.8, introduced 1.22.0-0, fixed 1.22.1 |
Références
- https://go.dev/issue/65697 REPORT
- https://go.dev/cl/564196 FIX
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |