CVE-2024-56412: PhpSpreadsheet - Stored XSS
- Cve: CVE-2024-56412
- Name: PhpSpreadsheet - Stored XSS
- Description: PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 are vulnerable to bypass of the cross-site scripting sanitizer using the javascript protocol and special characters. An attacker can use special characters, so that the library processes the javascript protocol with special characters and generates an HTML link. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.
- Impact: Attackers can craft malicious spreadsheet files that, when processed, generate harmful HTML links, leading to potential cross-site scripting attacks.
- Remediation: Update to version 3.7.0, 2.3.5, 2.1.6, or 1.29.7 which contain patches for this issue.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to craft malicious spreadsheet content
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.0039
- Epss percentile: 0.33645
- Assignee: [email protected]
- Published at: 2025-01-03T18:15:16Z
- Age in days: 690
- Modified at: 2026-06-17T08:12:09Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-56412
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-q9jv-mm3r-j47r | nvd | 2025-01-03 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e | nvd | Patch |
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-q9jv-mm3r-j47r | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| phpoffice:phpspreadsheet | >= 3.0.0, < 3.7.0; >= 2.2.0, < 2.3.5; >= 2.0.0, < 2.1.6; < 1.29.7 | no | nvd | /v1/products/phpoffice/phpspreadsheet |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| PHPOffice/PhpSpreadsheet | commit, fix, package, security_advisory | yes | /v1/repositories/PHPOffice/PhpSpreadsheet |
Index
- Repositories: 64
- Repositories high signal: 37
- Packages: 2
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-01-03
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts