CVE-2023-39319
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/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.20.8 |
| Golang | Go | >= 1.21.0, < 1.21.1 |
References
- https://go.dev/issue/62197Issue Tracking
- https://pkg.go.dev/vuln/GO-2023-2043Vendor Advisory
- https://security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory
- https://go.dev/issue/62197Issue Tracking
- https://pkg.go.dev/vuln/GO-2023-2043Vendor Advisory
- https://security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-39319?
How severe is CVE-2023-39319?
How do I fix CVE-2023-39319?
Are you affected by CVE-2023-39319?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
