CVE-2025-59364 json
express-xss-sanitizer has an unbounded recursion depth
published 2025-09-14 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-29138 , GHSA-hvq2-wf92-j4f3
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm express-xss-sanitizer 2.0.1
- express_xss_sanitizer_project express_xss_sanitizer 2.0.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | express-xss-sanitizer | <2.0.1 |
2.0.1 |
Affected products
- Express XSS Sanitizer project Express XSS Sanitizer
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/AhmedAdelFahim/express-xss-sanitizer/pull/23
web
-
github.com
/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e4f6d6
web
-
github.com
/AhmedAdelFahim/express-xss-sanitizer
package
-
npmjs.com
/package/express-xss-sanitizer
web
-
gist.github.com
/Spendroslav/177804eaef5acfb222a550de212a1b94
web
-
github.com
/AhmedAdelFahim/express-xss-sanitizer/security/advisories/GHSA-hvq2-wf92-j4f3
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-59364
advisory
-
dbugs.ptsecurity.com
/vulnerability/PT-2025-37434
web
-
tenable.com
/cve/CVE-2025-59364
web
Sources
- CVE List CVE-2025-59364
- GitHub Advisory GHSA-hvq2-wf92-j4f3
- NVD CVE-2025-59364
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.