CVE-2024-24785 — Injection in Standard Library Html Template
Severity
5.4MEDIUMNVD
EPSS
1.3%
top 20.64%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 5
Latest updateNov 14
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 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.5
Affected Packages1 packages
🔴Vulnerability Details
4GHSA▶
GHSA-j6m3-gc37-6r6q: If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/↗2024-03-06
OSV▶
CVE-2024-24785: If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/↗2024-03-05
CVEList
▶
📋Vendor Advisories
6Microsoft
▶
Red Hat▶
golang: html/template: errors returned from MarshalJSON methods may break template escaping↗2024-03-05