CVE-2023-24540

Improper handling of JavaScript whitespace in html/template

State
Published
Severity
9.8 Critical
Published
May 11, 2023
Updated
Jan 24, 2025
Reserved
Jan 25, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products

ProductVersions
html/templateGo standard library
  • before 1.19.9Affected
  • 1.20.0-0 to before 1.20.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.