CVE-2024-56408

PhpSpreadsheet allows unauthorized reflected XSS in `Convert-Online.php` file

State
Published
Severity
8.3 High
Published
Jan 3, 2025
Updated
May 20, 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 have no sanitization in the `/vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php` file, which leads to the possibility of a cross-site scripting attack. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.

Scores

CVSSScoreVectorSource
4.08.3 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:LGitHub_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.