{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-24785","id":"CVE-2024-24785","title":"Errors returned from JSON marshaling may break template escaping in html/template","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.","descriptionLong":"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.","published":"2024-03-05T22:22:33.640Z","updated":"2026-06-17T07:14:51.357Z","reserved":"2024-01-30T16:05:14.757Z","status":"Deferred","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"}],"rating":"medium","products":["Go standard library html/template"],"affectedProducts":[{"vendor":"Go standard library","product":"html/template","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.21.8","status":"affected","versionType":"semver"},{"version":"1.22.0-0","lessThan":"1.22.1","status":"affected","versionType":"semver"}],"platforms":[]}],"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"],"advisory":"GO-2024-2610"}],"cwes":["CWE-150"],"aliases":["BIT-golang-2024-24785","GO-2024-2610"],"references":[{"url":"https://go.dev/issue/65697","tags":["x_transferred","web","report"]},{"url":"https://go.dev/cl/564196","tags":["x_transferred","web","fix"]},{"url":"https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg","tags":["x_transferred","web"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2610","tags":["x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240329-0008/","tags":["x_transferred","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/08/4","tags":["x_transferred","web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00789,"epssPercentile":0.57136,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-24785","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24785","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-24785","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-24785","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}