CVE-2025-59364 Details
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.
A denial-of-service vulnerability has been identified in the Express XSS Sanitizer package, specifically in versions through 2.0.0. The issue arises from an unbounded recursion depth in the 'sanitize' function within 'lib/sanitize.js', which processes JSON request bodies. This flaw allows an unauthenticated remote attacker to send deeply nested JSON, causing a 'RangeError: Maximum call stack size exceeded'. This error disrupts the event loop, leading to repeated 500 responses or process termination.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 14, 2025CISA-ADP
Assessed Sep 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94 | [email protected] | Technical Description |
| https://github.com/AhmedAdelFahim/express-xss-sanitizer | [email protected] | Source CodeVendor |
| https://www.npmjs.com/package/express-xss-sanitizer | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| AhmedAdelFahim express-xss-sanitizer | <= 2.0.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 14, 2025 | New CVE Received | [email protected] |
Volerion