9.8Critical

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

Go standard library html/template Published: (3 years ago)

Description

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.

Weakness (CWE): CWE-74CWE-77

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library html/template < 1.19.9, 1.20.0-0 – < 1.20.4

References and patches