GO-2024-2610
Dashboard / Vulnerabilities / 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.
References: https://go.dev/issue/65697, https://go.dev/cl/564196, https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.21.8
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
