CVE-2024-56412
published medium CVSS 4.0 · 4.8PhpSpreadsheet vulnerable to bypass of the XSS sanitizer using the javascript protocol and special characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHPOffice | — | PhpSpreadsheet>= 3.0.0, < 3.7.0 · < 1.29.7 · >= 2.0.0, < 2.1.6 · >= 2.2.0, < 2.3.5 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | >= 3.0.0, < 3.7.0 (affected)< 1.29.7 (affected)>= 2.0.0, < 2.1.6 (affected)>= 2.2.0, < 2.3.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
PhpSpreadsheet vulnerable to bypass of the XSS sanitizer using the javascript protocol and special characters
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4e20cdb8b47149324068bb5e84b6549d759a0d930539410719234a941444d956
- Ingested
- 23 Sep 2026, 08:31:43 UTC
- Source record
- Official CVE record