{"schema_version":"1.7.3","id":"BIT-golang-2024-24785","published":"2024-03-12T08:24:09.179Z","modified":"2026-01-28T03:41:11.881635Z","aliases":["CVE-2024-24785","GO-2024-2610"],"summary":"Errors returned from JSON marshaling may break template escaping in html/template","details":"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.","affected":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.21.8"},{"introduced":"1.22.0-0"},{"fixed":"1.22.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2024-24785.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"}]}],"references":[{"type":"WEB","url":"https://go.dev/cl/564196"},{"type":"WEB","url":"https://go.dev/issue/65697"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2610"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20240329-0008/"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/03/08/4"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24785"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"Medium"}}