CVE-2024-24785
Errors returned from JSON marshaling may break template escaping in html/template
5.4
MEDIUM
CVSS 3.1
EPSS 0.92%
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.
How to fix CVE-2024-24785
To remediate CVE-2024-24785, upgrade the affected package to a fixed version below.
- —upgrade to 1.21.8 or later
- —no fix listed
- —no fix listed
- —upgrade to 1.21.8 or later
Is CVE-2024-24785 being exploited?
Low — EPSS is 0.9%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.21.8, >= 1.22.0-0, < 1.22.1
- from 0
- from 0
- from 0, < 1.21.8, >= 1.22.0-0, < 1.22.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |