GHSA-qhwp-454g-2gv4: Duplicate Advisory: express-xss-sanitizer has an unbounded recursion depth
This advisory was withdrawn on Sep 26, 2025. The publisher no longer considers it a valid vulnerability.
Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-hvq2-wf92-j4f3. This link is maintained to preserve external references. Original Descripton The express-xss-sanitizer package for Node.js has an unbounded recursion in the sanitize function (lib/sanitize.js) when processing JSON request bodies.
Published Sep 15, 2025 · Updated Sep 26, 2025
Affected packages
express-xss-sanitizer
- Ecosystem
- npm
- Affected
- <= 2.0.0
- Fixed in
- No patched version yet
- Check
npm ls express-xss-sanitizer
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-hvq2-wf92-j4f3. This link is maintained to preserve external references.
Original Descripton
The express-xss-sanitizer package for Node.js has an unbounded recursion in the sanitize function (lib/sanitize.js) when processing JSON request bodies. A remote attacker can send a deeply nested payload to any endpoint that applies this sanitizer, driving excessive recursion and resource consumption (CPU) until the process becomes unresponsive or crashes (e.g., “Maximum call stack size exceeded”). This causes a denial of service. The issue is present through version 2.0.0; no fixed release is available as of this update.
Credited to cai0duque, AhmedAdelFahim.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-59364
- https://gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94
- https://github.com/AhmedAdelFahim/express-xss-sanitizer
- https://www.npmjs.com/package/express-xss-sanitizer
- https://dbugs.ptsecurity.com/vulnerability/PT-2025-37434
- https://www.tenable.com/cve/CVE-2025-59364
- https://github.com/advisories/GHSA-qhwp-454g-2gv4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
