CVE-2023-39319
MediumSummary
The html/template package in Go improperly applies rules for handling "<script", "<!--", and "</script" sequences within JS literals in <script> contexts. This may cause the template parser to prematurely terminate script contexts, leading to improper escaping of actions.
Risk Assessment
The organization is at risk of JavaScript injection (XSS) in web applications using this package, potentially allowing an attacker to execute malicious scripts in the victim's browser.
Recommendation
Immediately update the html/template package to a patched version (e.g., Go 1.21.1 or later). Also review template code for potentially dangerous patterns.
Original NVD description (English source)
The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped.

