Skip to content
5.4 Medium

CVE-2024-24785 If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual…

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 and versions

Product Affected versions Fixed in
html/template 1.22 1.22.0-0 → < 1.22.1 1.22.1
html/template 1.21 earliest → < 1.21.8 1.21.8

References

Timeline

  1. Published
  2. Last modified
The 14 CVEs of html/template →
Track this CVE