Vulnerability CVE-2024-24785


Published: 2024-03-05   Modified: 2024-03-06

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.

 References:
https://go.dev/issue/65697
https://go.dev/cl/564196
https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
https://pkg.go.dev/vuln/GO-2024-2610

Copyright 2026, cxsecurity.com

 

Back to Top