Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Express XSS Sanitizer restrictive configuration bypass

IdentifiersCVE-2026-33979CWE-79· Improper Neutralization of Input…

CVE-2026-33979 affects Express XSS Sanitizer, middleware for Express 4.x and 5.x that sanitizes user-controlled data in req.body, req.query, req.headers, and req.params to reduce XSS risk. In versions prior to 2.0.2, restrictive sanitization configurations can be silently ignored. Specifically, explicitly supplied empty allowedTags or allowedAttributes values are overridden instead of being honored, causing sanitize-html to operate with less restrictive behavior than the application developer intended. This results in a protection failure in the middleware’s validation/configuration handling and can allow malicious HTML content that should have been stripped to pass through sanitization.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The primary impact is weakening or bypass of intended XSS defenses in applications that rely on Express XSS Sanitizer with restrictive custom configurations. If an application expects empty allowedTags and/or allowedAttributes to enforce a highly restrictive sanitization policy, affected versions may instead permit content according to overridden defaults, increasing the likelihood that attacker-supplied markup survives sanitization. This can lead to stored or reflected XSS depending on how the sanitized data is later rendered, with potential consequences including session theft, arbitrary script execution in victims’ browsers, content injection, and integrity compromise of the web application’s client-side context.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, avoid relying on empty allowedTags or allowedAttributes values in affected versions to enforce restrictive policies, because those settings may be ignored. Review middleware configuration and validate the actual sanitization output against expected policy. As a compensating control, apply output encoding appropriate to the rendering context, use defense-in-depth browser controls such as CSP where feasible, and consider direct sanitize-html configuration or equivalent server-side sanitization logic that can be verified to enforce the intended restrictions until the library is upgraded.

Remediation

Patch, then assume compromise.

Upgrade Express XSS Sanitizer to version 2.0.2 or later. The fix updates validation logic so that explicitly provided allowedTags or allowedAttributes values, including empty configurations, are passed directly to sanitize-html and are no longer silently overridden. Where possible, verify application behavior after upgrade with regression tests covering custom sanitization policies, especially configurations intended to disallow all tags or attributes.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Express Xss Sanitizer ProjectExpress Xss Sanitizerapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity6

Community discussion across Reddit, Mastodon, and other social sources.