Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpoffice/phpspreadsheet
  4. ›
  5. CVE-2026-35453

CVE-2026-35453: PhpSpreadsheet has XSS via NumberFormat @ Text Substitution in HTML Writer

April 28, 2026 (updated May 8, 2026)

The HTML Writer in PhpSpreadsheet bypasses htmlspecialchars() output escaping when a cell uses a custom number format containing the @ text placeholder with additional literal text (e.g., @ "items" or "Total: "@). This allows an attacker to inject arbitrary HTML and JavaScript into the generated HTML output by crafting a malicious XLSX file.

References

  • github.com/PHPOffice/PhpSpreadsheet
  • github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-6wpp-88cp-7q68
  • github.com/advisories/GHSA-6wpp-88cp-7q68
  • nvd.nist.gov/vuln/detail/CVE-2026-35453

Code Behaviors & Features

Detect and mitigate CVE-2026-35453 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.30.4, all versions starting from 2.0.0 before 2.1.16, all versions starting from 2.2.0 before 2.4.5, all versions starting from 3.3.0 before 3.10.5, all versions starting from 4.0.0 before 5.7.0

Fixed versions

  • 5.7.0
  • 3.10.5
  • 2.4.5
  • 2.1.16
  • 1.30.4

Solution

Upgrade to versions 1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

packagist/phpoffice/phpspreadsheet/CVE-2026-35453.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:25 +0000.