9.8Kritisch

CVE-2023-24540Improper handling of JavaScript whitespace in html/template

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

Beschreibung

Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.

Schwachstellentyp (CWE): CWE-74CWE-77

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.19.9, 1.20.0-0 – < 1.20.4

Referenzen und Patches