[GO-2023-2041] Improper handling of HTML-like comments in script contexts in html/template

Severity Medium
Affected Packages 2
Fixed Packages 2
CVEs 1

The html/template package does not properly handle HTML-like "" comment tokens,
nor hashbang "#!" comment tokens, in <script> contexts. This may cause the
template parser to improperly interpret the contents of <script> contexts,
causing actions to be improperly escaped. This may be leveraged to perform an
XSS attack.

Package Affected Version
pkg:golang/html/template >= 1.21.0, < 1.20.8
pkg:golang/html/template >= 1.21.0, < 1.21.1
Package Fixed Version
pkg:golang/html/template = 1.20.8
pkg:golang/html/template = 1.21.1
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Fixed pkg:golang/html/template html template = 1.20.8
Affected pkg:golang/html/template html template >= 1.21.0 < 1.20.8
Fixed pkg:golang/html/template html template = 1.21.1
Affected pkg:golang/html/template html template >= 1.21.0 < 1.21.1
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...