CVE-2023-24539
HIGH7.3EPSS 0.08%Improper sanitization of CSS values in html/template
Published: 5/5/2023Modified: 4/28/2026
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 packages (4)
- Bitnami/golangfrom 0, < 1.19.9, >= 1.20.0, < 1.20.4
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Go/stdlibfrom 0, < 1.19.9, >= 1.20.0-0, < 1.20.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-24539
- PATCHhttps://go.dev/cl/491615
- REPORThttps://go.dev/issue/59720
- WEBhttps://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-24539
- WEBhttps://pkg.go.dev/vuln/GO-2023-1751
- WEBhttps://security.netapp.com/advisory/ntap-20241129-0005/