CVE-2023-39319

Aliases:GO-2023-2043BIT-golang-2023-39319
Modified
Published: 08 Sept 2023, 16:13
Last modified:13 Feb 2025, 17:02

Vulnerability Summary

Overall Risk (default)
low
24/100
CVSS Score
6.1 MEDIUM
v3.1 (nvd)
EPSS Score
0.09% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

08 Sept 2023, 16:13
Published
Vulnerability first disclosed
13 Feb 2025, 17:02
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1MEDIUMScore: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Trends

Current EPSS score: 0.09% Percentile: 25%

Techniques & Countermeasures

  • CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

    The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Affected Systems

  • go standard libraryhtml/template

    < 1.20.8 | ≥ 1.21.0-0, < 1.21.1

  • golanggo

    < 1.20.8 | ≥ 1.21.0, < 1.21.1

  • Gostdlib

    ≥ 1.21.0-0, < 1.21.1

References (6)