express-xss-sanitizer@1.1.1 vulnerabilities

Express 4.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack.

Direct Vulnerabilities

Known vulnerabilities in the express-xss-sanitizer package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Prototype Pollution

express-xss-sanitizer is an Express 4.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack.

Affected versions of this package are vulnerable to Prototype Pollution via the allowedTags attribute, allowing the attacker to bypass xss sanitization.

How to fix Prototype Pollution?

Upgrade express-xss-sanitizer to version 1.1.3 or higher.

<1.1.3