CVE-2023-39319

MEDIUMCVSS 6.1/10EPSS 0.79%

Last modified

CVE-2023-39319 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.79% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
6.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Probability
0.79%

51.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
GolangGo< 1.20.8
GolangGo>= 1.21.0, < 1.21.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-39319?
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.
How severe is CVE-2023-39319?
CVE-2023-39319 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 0.79% probability of exploitation in the next 30 days.
How do I fix CVE-2023-39319?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-39319?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST