{"cve":"CVE-2024-24785","nvd":{"published":"2024-03-05T23:15:07.777","modified":"2026-06-17T07:14:51.357","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4},"cwes":[],"references":["http://www.openwall.com/lists/oss-security/2024/03/08/4","https://go.dev/cl/564196","https://go.dev/issue/65697","https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg","https://pkg.go.dev/vuln/GO-2024-2610"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-24785","score":0.00795,"percentile":0.56443,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GO-2024-2610","url":"https://osv.dev/vulnerability/GO-2024-2610","summary":"Errors returned from JSON marshaling may break template escaping in html/template","modified":"2026-02-04T03:09:18.870079Z","packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.21.8",">=1.22.0-0 <1.22.1"],"fixed":["1.21.8","1.22.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}