Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-33979

CVE-2026-33979: Express XSS Sanitizer XSS Vulnerability

CVE-2026-33979 is an XSS vulnerability in Express XSS Sanitizer where restrictive configurations are silently ignored in versions prior to 2.0.2. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-33979 Overview

Express XSS Sanitizer is a middleware for Express 4.x and 5.x applications that sanitizes user input data across req.body, req.query, req.headers, and req.params to prevent Cross-Site Scripting (XSS) attacks. A vulnerability has been identified in versions prior to 2.0.2 where restrictive sanitization configurations are silently ignored, potentially allowing XSS payloads to pass through despite administrators believing strict sanitization rules are in place.

Critical Impact

Applications using Express XSS Sanitizer with custom restrictive configurations (empty allowedTags or allowedAttributes) may be vulnerable to XSS attacks as the middleware silently ignores these security-hardening configurations.

Affected Products

  • Express XSS Sanitizer versions prior to 2.0.2
  • Express 4.x applications using vulnerable express-xss-sanitizer versions
  • Express 5.x applications using vulnerable express-xss-sanitizer versions

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-33979 published to NVD
  • 2026-03-31 - Last updated in NVD database

Technical Details for CVE-2026-33979

Vulnerability Analysis

This vulnerability represents a Missing Input Sanitization flaw (CWE-79) that undermines the security controls administrators attempt to implement. The core issue lies in how the Express XSS Sanitizer middleware processes configuration options passed by developers. When developers explicitly provide empty arrays for allowedTags or allowedAttributes to enforce maximum restriction on user input, the middleware's validation logic incorrectly overrides these settings with default values, effectively bypassing the intended strict sanitization.

The network-accessible attack vector means any user who can submit input to affected endpoints can potentially inject malicious scripts. The vulnerability primarily impacts data integrity, as XSS payloads can be used to modify page content, steal session tokens, or perform actions on behalf of authenticated users.

Root Cause

The root cause is improper handling of explicitly provided empty configuration arrays in the validation logic. Prior to version 2.0.2, the middleware treated empty arrays as falsy values and replaced them with default permissive configurations. This behavior contradicts the reasonable expectation that an empty allowedTags array should result in zero HTML tags being permitted in sanitized output.

The fix in version 2.0.2 updates the validation logic to properly distinguish between "not provided" and "explicitly provided as empty." When allowedTags or allowedAttributes are provided (even if empty), they are now passed directly to the underlying sanitize-html library without being overridden.

Attack Vector

The attack exploits the configuration bypass by submitting XSS payloads through any input vector processed by the middleware—including request bodies, query parameters, headers, and URL parameters. Since the middleware silently ignores restrictive configurations, attackers can inject script tags and event handlers that administrators believed were blocked.

An attacker could craft malicious input containing HTML tags and JavaScript code. When processed by an application that has configured express-xss-sanitizer with empty allowedTags (intending to strip all HTML), the input passes through unsanitized due to the configuration being silently overridden with defaults. The malicious payload then renders in the victim's browser, enabling script execution in the context of the vulnerable application.

Detection Methods for CVE-2026-33979

Indicators of Compromise

  • Unexpected HTML tags appearing in stored or reflected user input that should have been stripped
  • JavaScript execution in contexts where all scripts should have been sanitized
  • User reports of suspicious pop-ups or unexpected behavior when viewing user-generated content
  • Log entries showing HTML special characters that should have been encoded or removed

Detection Strategies

  • Audit your package.json and package-lock.json for express-xss-sanitizer versions below 2.0.2
  • Review application code for uses of express-xss-sanitizer with empty allowedTags or allowedAttributes arrays
  • Implement web application firewall rules to detect common XSS patterns in input
  • Deploy content security policies (CSP) to mitigate impact of successful XSS exploitation

Monitoring Recommendations

  • Enable detailed logging for all user input processing through the sanitizer middleware
  • Monitor for anomalous patterns in user-submitted data that may indicate XSS probing
  • Implement automated dependency scanning in CI/CD pipelines to detect vulnerable package versions
  • Set up alerts for CSP violation reports which may indicate XSS attempts

How to Mitigate CVE-2026-33979

Immediate Actions Required

  • Upgrade express-xss-sanitizer to version 2.0.2 or later immediately
  • Review all application endpoints that process user input through the sanitizer middleware
  • Audit stored user-generated content for existing XSS payloads that may have bypassed sanitization
  • Implement Content Security Policy headers as defense-in-depth against XSS exploitation

Patch Information

The vulnerability has been addressed in version 2.0.2 of express-xss-sanitizer. The fix ensures that explicitly provided empty configurations for allowedTags and allowedAttributes are respected and passed directly to the underlying sanitize-html library. Upgrade by running npm update express-xss-sanitizer or specifying "express-xss-sanitizer": "^2.0.2" in your package.json. For detailed technical information, see the GitHub Security Advisory GHSA-3843-rr4g-m8jq and Release Notes for v2.0.2.

Workarounds

  • If immediate upgrade is not possible, implement additional server-side input validation before the sanitizer middleware
  • Add a secondary sanitization layer using an alternative library with verified strict mode behavior
  • Deploy strict Content Security Policy headers to block inline script execution
  • Consider temporarily blocking or heavily restricting endpoints that accept rich user input until patched
bash
# Upgrade express-xss-sanitizer to patched version
npm install express-xss-sanitizer@^2.0.2

# Verify installed version
npm list express-xss-sanitizer

# Audit for other vulnerable dependencies
npm audit

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechExpress Xss Sanitizer

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release v2.0.2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3843-rr4g-m8jq
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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