In short
- CVE-2024-24785 is a MEDIUM (CVSS 5.4) vulnerability affecting stdlib.
- Chance of exploitation in the next 30 days (EPSS): 0.80%, higher than 56.4% of all vulnerabilities.
- Fix: update to 1.22.1, 1.21.8 or later.
| Package | Affected versions | Patched versions |
|---|
| stdlib Go | ≥ 1.22.0-0, < 1.22.1< 1.21.8
| 1.22.11.21.8
|
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.
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free