CVE-2025-59364

Medium

Description

The express-xss-sanitizer (aka Express XSS Sanitizer) package through 2.0.0 for Node.js has an unbounded recursion depth in sanitize in lib/sanitize.js for a JSON request body.

SeverityMedium
CVSS5.3
Exploit probability—
ProductExpress-xss-sanitizer
PublishedSep 14, 2025
First seenSep 14, 2025
Weakness typeCWE-674CWE-674

How to fix

Update
  • express-xss-sanitizer2.0.1 or later

Affected products

ProductAffected versionsFixed in
express-xss-sanitizernpmv < 2.0.12.0.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-59364 · Express-xss-sanitizer · Dark Radar