express-xss-sanitizer
Affected
- introduced
0, fixed2.0.1(semver)
Fixed versions
2.0.1
Fix
- Fixed version
2.0.1npm install [email protected]
Advisory
Also known as: CVE-2025-59364
express-xss-sanitizer has an unbounded recursion depth
Security Advisory: express-xss-sanitizer
Overview
A vulnerability was discovered in express-xss-sanitizer that allowed unbounded recursion depth during sanitization of nested objects.
Affected Versions
Patched Versions
Description
The sanitize function in lib/sanitize.js performed recursive sanitization without depth limiting, making it vulnerable to stack overflow attacks via specially crafted deeply nested JSON objects.
Impact
An attacker could cause denial-of-service by sending a request with deeply nested structures, potentially crashing the Node.js process.
Solution
Upgrade to version 2.0.1 or later:
npm install express-xss-sanitizer@latestMedium Basis: The source's own band: MODERATE
0, fixed 2.0.1 (semver)2.0.1
2.0.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0