CVE-2023-39318
Last modified
CVE-2023-39318 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.81% chance of exploitation in the next 30 days.
Description
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.
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/62196Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJMailing List, Release Notes
- https://pkg.go.dev/vuln/GO-2023-2041Vendor Advisory
- https://security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory
- https://go.dev/issue/62196Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJMailing List, Release Notes
- https://pkg.go.dev/vuln/GO-2023-2041Vendor 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-39318?
How severe is CVE-2023-39318?
How do I fix CVE-2023-39318?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-39311Cross-Site Request Forgery (CSRF) vulnerability in ThemeFusi…8.8
- CVE-2023-39312Missing Authorization vulnerability in ThemeFusion Avada.Thi…8.8
- CVE-2023-39313Server-Side Request Forgery (SSRF) vulnerability in ThemeFus…7.7
- CVE-2023-39314Unauth. Reflected Cross-Site Scripting (XSS) vulnerability i…6.1
- CVE-2023-39316Multiple integer overflow vulnerabilities exist in the LXT2 …7.8
- CVE-2023-39317Multiple integer overflow vulnerabilities exist in the LXT2 …7.8
- CVE-2023-39319The html/template package does not apply the proper rules fo…6.1
- CVE-2023-3932An issue has been discovered in GitLab EE affecting all vers…6.5
- CVE-2023-39320The go.mod toolchain directive, introduced in Go 1.21, can b…9.8
- CVE-2023-39321Processing an incomplete post-handshake message for a QUIC c…7.5
- CVE-2023-39322QUIC connections do not set an upper bound on the amount of …7.5
- CVE-2023-39323Line directives ("//line") can be used to bypass the restric…8.1
Are you affected by CVE-2023-39318?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
