# CVE-2023-24539: Improper sanitization of CSS values in html/template

- Severity: High 7.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2023-05-05T21:10:20.000Z
- Modified: 2026-09-08T08:47:48.490Z
- Also known as: GO-2023-1751, BIT-GOLANG-2023-24539
- Related: CGA-fh88-rpf7-h83h
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- html/template: before 1.19.9; from 1.20.0-0 before 1.20.4
- stdlib (Go): before 1.19.9; from 1.20.0-0 before 1.20.4
- golang go: before 1.19.9; from 1.20.0 before 1.20.4
- golang (Bitnami): before 1.19.9; from 1.20.0 before 1.20.4

## Every score

- CISA-ADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Bitnami Vulnerability Database: rating High

## 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)

## Sources

- CVE List: [CVE-2023-24539](https://www.cve.org/CVERecord?id=CVE-2023-24539), CVE Terms of Use, modified 2025-01-24
- Go Vulnerability Database: [GO-2023-1751](https://pkg.go.dev/vuln/GO-2023-1751), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-24539](https://nvd.nist.gov/vuln/detail/CVE-2023-24539), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2023-24539](https://osv.dev/vulnerability/BIT-GOLANG-2023-24539), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-24539 · Whole record: https://cve.day/CVE-2023-24539.json · Rebuilt by cve.day 2026-11-25T22:58:24.100Z
