CVE-2026-33979
Express XSS Sanitizer is Express 4.x and 5.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack. A vulnerability has been identified in versions prior to 2.0.2 where restrictive sanitization configurations are silently ignored. In version 2.0.2, the validation logic has been updated to respect explicitly provided empty configurations. Now, if allowedTags or allowedAttributes are provided (even if empty), they are passed directly to sanitize-html without being overridden.
Published:Mar 27, 2026
Last Modified:Mar 31, 2026
EPS:Mar 27, 2026
EPSS Score:0.00009
CVSS Score:8.2
Affected Products
Vendor
Product
Action
Vendor
Ahmedadelfahim
Product
Express-xss-sanitizer
Ahmedadelfahim
Express-xss-sanitizer
Vendor
Express Xss Sanitizer Project
Product
Express Xss Sanitizer
Express Xss Sanitizer Project
Express Xss Sanitizer
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
