{"id":"GO-2024-2610","revision":"4f062d420c794cca987992cec0f74b3a","records":[{"revision":"4f062d420c794cca987992cec0f74b3a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2610","aliases":["BIT-golang-2024-24785","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.","state":0,"publishedAt":"2024-03-05T22:15:40+00:00","modifiedAt":"2026-02-04T03:09:18.870079+00:00","affected":[{"ecosystem":"Go","name":"stdlib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.21.8"},{"kind":"introduced","version":"1.22.0-0"},{"kind":"fixed","version":"1.22.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/65697","https://go.dev/cl/564196","https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2610","license":"OSV · upstream source license applies","key":"osv:GO-2024-2610","identifiers":["GO-2024-2610","BIT-golang-2024-24785","CVE-2024-24785"]},"retained":false,"historicalAffected":[]}],"coverage":[]}