5.4Mittel

CVE-2024-24785Errors returned from JSON marshaling may break template escaping in html/template

Go standard library html/template Veröffentlicht: (vor 2 Jahren)

Beschreibung

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.

Schwachstellentyp (CWE): CWE-150

Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.

Betroffene Produkte und Versionen

HerstellerProduktVersionen
Go standard library html/template < 1.21.8, 1.22.0-0 – < 1.22.1

Referenzen und Patches