CVE-2023-39318
Medium
Description
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.
SeverityMedium
CVSS6.1
Exploit probability—
ProductGo
PublishedSep 8, 2023
First seenSep 8, 2023
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- golang go1.20.8, 1.21.1 or later
- stdlib1.20.8, 1.21.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| golang go | v < 1.20.8, 1.21.0 ≤ v < 1.21.1 | 1.20.8, 1.21.1 |
| stdlibGo | v < 1.20.8, 1.21.0-0 ≤ v < 1.21.1 | 1.20.8, 1.21.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.