SecurityContext

CVE-2024-56409: PhpSpreadsheet - Reflected XSS

  • Cve: CVE-2024-56409
  • Name: PhpSpreadsheet - Reflected XSS
  • 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.
  • Impact: Attackers can execute malicious scripts in the victim's browser, leading to session hijacking or defacement.
  • Remediation: Update to version 3.7.0, 2.3.5, 2.1.6, or 1.29.7 where the issue is patched.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.0034
  • Epss percentile: 0.28068
  • Assignee: [email protected]
  • Published at: 2025-01-03T17:15:08Z
  • Age in days: 690
  • Modified at: 2026-06-17T08:12:09Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-56409
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-j2xg-cjcx-4677nvd2025-01-03

References

UrlSourceTags
https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4nvdPatch
https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-j2xg-cjcx-4677nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
phpoffice:phpspreadsheet>= 3.3.0, < 3.7.0; >= 2.2.0, < 2.3.5; >= 2.0.0, < 2.1.6; < 1.29.7nonvd/v1/products/phpoffice/phpspreadsheet

Projects

RepositoryLink kindsIndexedUrl
PHPOffice/PhpSpreadsheetcommit, package, security_advisoryyes/v1/repositories/PHPOffice/PhpSpreadsheet

Index

  • Repositories: 64
  • Repositories high signal: 37
  • Packages: 2

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-01-03
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts