CVE Catalog

CVE-2023-24540

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Summary

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.

Risk Assessment

This may lead to improper sanitization of templates and potential content injection in JavaScript contexts.

Recommendation

Update the Go template library to a version containing the fix.

Other vulnerabilities in Go template library

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS