cve.bz

CVE-2023-39319

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 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.

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-2043Gostdlib<1.20.8
>=1.21.0-0 <1.21.1
1.20.8, 1.21.1

References

Check your stackJSON