CVE-2023-24539: CSS Context Injection via Templates - Stored XSS
- Cve: CVE-2023-24539
- Name: CSS Context Injection via Templates - Stored XSS
- 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.
- Impact: Attackers can inject malicious HTML into CSS contexts, potentially leading to cross-site scripting (XSS) or other HTML injection attacks.
- Remediation: Sanitize and validate all untrusted input used in CSS templates, and avoid using untrusted input in CSS contexts.
- Vulnerability type: template_injection
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Execution with untrusted input in CSS templates
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.01029
- Epss percentile: 0.64524
- Assignee: [email protected]
- Published at: 2023-05-11T16:15:09Z
- Age in days: 1293
- Modified at: 2026-06-17T05:39:29Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-24539
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://go.dev/cl/491615 | Patch |
| https://go.dev/issue/59720 | Issue Tracking, Patch |
| https://pkg.go.dev/vuln/GO-2023-1751 | Vendor Advisory |
| https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU | Mailing List, Release Notes |
| https://security.netapp.com/advisory/ntap-20241129-0005/ |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| golang:go | >= 1.20.0, < 1.20.4; < 1.19.9 | no | nvd | /v1/products/golang/go |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| golang/go | fix | yes | /v1/repositories/golang/go |
Index
- Packages: 1
- Checked, none or zero: repositories, repositories high signal
Exploitation
- Remote: yes
- Exposed hosts: 1852470
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports