cve.bz

CVE-2023-39318

6.1 mediumEPSS 0.9%

Medium (6.1) in golang go. EPSS 0.9% chance of exploitation in the next 30 days. Fixed in stdlib 1.20.8, 1.21.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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.9% chance of exploitation in the next 30 days; higher than 60% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-2041Gostdlib<1.20.8
>=1.21.0-0 <1.21.1
1.20.8, 1.21.1

References

Check your stackJSON