CVEvulnerability
CVE-2023-39319
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2023-09-08
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
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.
Affected configurations
• golang go (< 1.20.8)
• golang go (>= 1.21.0 < 1.21.1)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://go.dev/cl/526157 Patch
- https://go.dev/issue/62197 Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ Release Notes
- https://pkg.go.dev/vuln/GO-2023-2043 Vendor Advisory
- https://security.gentoo.org/glsa/202311-09 security.gentoo.org
- https://security.netapp.com/advisory/ntap-20231020-0009/ Third Party Advisory
- https://go.dev/cl/526157 Patch
- https://go.dev/issue/62197 Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ Release Notes
- https://pkg.go.dev/vuln/GO-2023-2043 Vendor Advisory
- https://security.gentoo.org/glsa/202311-09 security.gentoo.org
- https://security.netapp.com/advisory/ntap-20231020-0009/ Third Party Advisory