CVE-2024-56409

PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.php file

State
Published
Severity
8.3 High
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 unauthorized reflected cross-site scripting in the `Currency.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.php` script, an attacker can perform 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.