CVE-2025-59364
The express-xss-sanitizer (aka Express XSS Sanitizer) package …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94
- github.com/AhmedAdelFahim/express-xss-sanitizer
- www.npmjs.com/package/express-xss-sanitizer
- github.com/AhmedAdelFahim/express-xss-sanitizer/security/advisories/GHSA-hvq2-wf92-j4f3
- nvd.nist.gov/vuln/detail/CVE-2025-59364
- github.com/AhmedAdelFahim/express-xss-sanitizer/pull/23
- github.com/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e
- dbugs.ptsecurity.com/vulnerability/PT-2025-37434
- nvd.nist.gov/vuln/detail/CVE-2025-59364
- cve.org/CVERecord?id=CVE-2025-59364
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.