Back
CVE-2024-24785Errors returned from JSON marshaling may break template escaping in html/template
- 5.4MediumCVSS base score
- 0.80%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Go
- 35 days later
· 35 days later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVDNVD · Deferred | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.80% · top 43% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
Go standard library · html/template
- affected < 1.21.8
- affected 1.22.0-0 – < 1.22.1
References
References6
- https://go.dev/issue/65697 (opens in a new tab)x_transferred
- https://go.dev/cl/564196 (opens in a new tab)x_transferred
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2024-2610 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240329-0008/ (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/03/08/4 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-22163 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-24785)Record last updated .