XSS in Phpoffice Phpspreadsheet

CVE-2024-56412

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.004 (31.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-56412?
CVE-2024-56412 is a medium-severity vulnerability in Phpoffice Phpspreadsheet, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2025-01-03.
How severe is CVE-2024-56412?
Medium severity. CVSS v3 base score is 5.4 out of 10.