express-xss-sanitizer@1.1.5 vulnerabilities

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.

Direct Vulnerabilities

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

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • M
Uncontrolled Recursion

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 Uncontrolled Recursion via the sanitize function in lib/sanitize.js when processing a JSON request body. An attacker can cause the application to become unresponsive or crash by submitting specially crafted input that triggers unbounded recursion.

How to fix Uncontrolled Recursion?

There is no fixed version for express-xss-sanitizer.

*