XSS Vulnerability in html/template Package: Improper Handling of Script Contexts

XSS Vulnerability in html/template Package: Improper Handling of Script Contexts

CVE-2023-39319 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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. This could be leveraged to perform an XSS attack.

Learn more about our Web Application Penetration Testing UK.