Quick answers
- Is CVE-2025-59364 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-59364 being exploited in the wild.
- How severe is CVE-2025-59364?
- Medium severity, with a CVSS score of 4, published 26 September 2025.
- Which products and versions are affected?
- express-xss-sanitizer (npm) All versions prior to 2.0.1.
- Is there a fix for CVE-2025-59364?
- A patch was published on 2025-09-26: Version 2.0.1 released with recursion depth limiting Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-59364 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2025-59364?
- Check whether you run express-xss-sanitizer (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability exists in the sanitize function in lib/sanitize.js, which recursively processes nested objects without enforcing any depth limit (CWE-674: Uncontrolled Recursion). When an attacker sends a request containing deeply nested JSON objects, the recursive sanitization process consumes stack space until exhaustion, triggering a stack overflow and crashing the Node.js process. The attack requires only network access and no authentication or user interaction. Versions prior to 2.0.1 are affected; the patch introduces recursion depth limiting.
Affected products
- npm express-xss-sanitizer All versions prior to 2.0.1
Identifiers
- CVE-2025-59364
- GHSA-hvq2-wf92-j4f3
Timeline
- 2025-09-26: disclosed
- 2025-09-26: patched: Version 2.0.1 released with recursion depth limiting