CVE-2024-24785: Errors returned from JSON marshaling may break template escaping in html/template
Vulnerability summary
CVE-2024-24785 is a medium (CVSS 5.4) vulnerability in go standard library html/template. EPSS estimates a 0.80% chance of exploitation in the next 30 days, higher than 56.4% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 459Showing 100 of 466.
Timeline
- 05-03-2024PublishedVulnerability first disclosed.
- 14-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.80%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.80% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard199 products
- actions-runner-controller< 0.8.3-r1
- amass< 4.2.0-r4
- argo-workflows< 3.6.5-r2
- argo-workflows-fips< 3.5.5-r1
- atlantis-fips< 0.33.0-r6
Alpine1 product
- go< 1.21.8-r0 | < 1.22.1-r0
2 vendors · 200 products · Showing 200 of 562
References
17 links- go.dev/issue/65697REPORT