CVE-2024-56412

Public Exploit
PhpSpreadsheet vulnerable to bypass of the XSS sanitizer using the javascript protocol and special characters

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.

Category

4.8
CVSS
Severity: Medium
CVSS 4.0 •
CVSS 3.1 •
EPSS 0.05%
Vendor Advisory github.com
Affected: PHPOffice PhpSpreadsheet
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-56412?
CVE-2024-56412 has been scored as a medium severity vulnerability.
How to fix CVE-2024-56412?
To fix CVE-2024-56412, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-56412 being actively exploited in the wild?
It is possible that CVE-2024-56412 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-56412?
CVE-2024-56412 affects PHPOffice PhpSpreadsheet.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.