CVE-2023-24539
7.3high
Improper sanitization of CSS values in html/template
- Severity
- 7.3high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.03% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2023-1751BIT-GOLANG-2023-24539
Description
Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, if executed with untrusted input.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| html/template | before 1.19.9, from 1.20.0-0 before 1.20.4 | CVE List |
| stdlib (Go) | before 1.19.9, from 1.20.0-0 before 1.20.4 | Go Vulnerability Database |
| golang go | before 1.19.9, from 1.20.0 before 1.20.4 | NVD |
| golang (Bitnami) | before 1.19.9, from 1.20.0 before 1.20.4 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| Bitnami Vulnerability Database | high rating |
Classification
References
| https://go.dev/issue/59720 | fix, issue-tracking, patch, report | |
| https://go.dev/cl/491615 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU | discussion, mailing-list, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2023-1751 | advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20241129-0005/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-24539 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-24539 changed 2025-01-24 | CVE Terms of Use |
| Go Vulnerability Database | GO-2023-1751 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-24539 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2023-24539 changed 2026-09-08 | Apache-2.0 |