Skip to content
CVE PROGRAM SOURCE RECORD5.4 Medium

CVE-2024-24785

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library html/template

Default version status: unaffected

  • 0 to < 1.21.8affected
  • 1.22.0-0 to < 1.22.1affected

References