Improper handling of JavaScript whitespace in html/template
CVE-2023-24540
9.8CRITICAL
What is CVE-2023-24540?
The vulnerability involves a failure to recognize certain valid JavaScript whitespace characters in the Go programming language. This oversight can lead to improper sanitization of templates containing these characters within execution contexts that involve actions. Developers using Go may find that the presence of whitespace characters outside of the expected set can result in security risks, highlighting the importance of rigorous input validation to ensure safe template processing.
Affected Version(s)
html/template 0 < 1.19.9
html/template 1.20.0-0 < 1.20.4