CVE-2024-56412

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

State
Published
Severity
4.8 Medium
Published
Jan 3, 2025
Updated
Jan 3, 2025
Reserved
Dec 23, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.04.8 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
PhpSpreadsheetPHPOffice
  • >= 3.0.0, < 3.7.0Affected
  • < 1.29.7Affected
  • >= 2.0.0, < 2.1.6Affected
  • >= 2.2.0, < 2.3.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.