# CVE-2025-59364: express-xss-sanitizer has an unbounded recursion depth

- Severity: Medium 5.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-09-14T00:00:00.000Z
- Modified: 2026-06-17T09:46:01.287Z
- Also known as: GHSA-hvq2-wf92-j4f3
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Express XSS Sanitizer project Express XSS Sanitizer: 2.0.0
- express-xss-sanitizer (npm): before 2.0.1

## Every score

- mitre: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/AhmedAdelFahim/express-xss-sanitizer> (package)
- <https://www.npmjs.com/package/express-xss-sanitizer> (web)
- <https://gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94> (web)
- <https://github.com/AhmedAdelFahim/express-xss-sanitizer/security/advisories/GHSA-hvq2-wf92-j4f3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59364> (advisory)
- <https://github.com/AhmedAdelFahim/express-xss-sanitizer/pull/23> (web)
- <https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e4f6d6> (web)
- <https://dbugs.ptsecurity.com/vulnerability/PT-2025-37434> (web)
- <https://www.tenable.com/cve/CVE-2025-59364> (web)

## Sources

- CVE List: [CVE-2025-59364](https://www.cve.org/CVERecord?id=CVE-2025-59364), CVE Terms of Use, modified 2025-09-15
- GitHub Advisory Database: [GHSA-hvq2-wf92-j4f3](https://github.com/advisories/GHSA-hvq2-wf92-j4f3), CC-BY-4.0, modified 2025-09-26
- NVD: [CVE-2025-59364](https://nvd.nist.gov/vuln/detail/CVE-2025-59364), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59364 · Whole record: https://cve.day/CVE-2025-59364.json · Rebuilt by cve.day 2026-11-25T22:59:04.632Z
