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

How to fix

Update
  • golang go1.20.8, 1.21.1 or later
  • stdlib1.20.8, 1.21.1 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.20.8, 1.21.0 ≤ v < 1.21.11.20.8, 1.21.1
stdlibGov < 1.20.8, 1.21.0-0 ≤ v < 1.21.11.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.