CVE-2024-24785Published Mar 5, 2024 · Mar 5Updated Jun 17
Errors returned from JSON marshaling may break template escaping in html/template
Go standard library html/template
Medium5.4Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| stdlib Go |
|
|
Original 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.
From the CVE record · Go