CVE-2024-56412
Published:January 03, 2025
Updated:May 17, 2026
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.
Affected Packages
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=3.3.0 <3.7.0Fix Suggestion:
Update to version 3.7.0phpoffice/phpspreadsheet (PHP):
Affected version(s) >=dev-release <1.29.7Fix Suggestion:
Update to version 1.29.7phpoffice/phpspreadsheet (PHP):
Affected version(s) >=2.0.0 <2.1.6Fix Suggestion:
Update to version 2.1.6phpoffice/phpspreadsheet (PHP):
Affected version(s) >=2.2.0 <2.3.5Fix Suggestion:
Update to version 2.3.5Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
ACTIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.23