Uncontrolled recursion in Express XSS Sanitizer
Priority LOW 24CWE-674Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00449 39th percentileScored 2026-11-07
Fix Fixed express-xss-sanitizer (npm): 2.0.1
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Express XSS Sanitizer project | Express XSS Sanitizer | 2.0.0 | — | No fix listed | CNA |
| — | express-xss-sanitizer (npm) | before 2.0.1 | 2.0.1 | Patch available | GHSA-hvq2-wf92-j4f3 |
- Express XSS Sanitizer VendorExpress XSS Sanitizer project Affected 2.0.0 Fixed in — No fix listed CNA
- express-xss-sanitizer (npm) Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available GHSA-hvq2-wf92-j4f3
Remediation
- Fix · GHSA-hvq2-wf92-j4f3 express-xss-sanitizer (npm) Fixed in 2.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59364
- 2026-10-03 Alias added: GHSA-hvq2-wf92-j4f3
References
Other 7
- https://github.com/AhmedAdelFahim/express-xss-sanitizer
- https://www.npmjs.com/package/express-xss-sanitizer
- https://gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/security/advisories/GHSA-hvq2-wf92-j4f3
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/pull/23
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e4f6d6
- https://dbugs.ptsecurity.com/vulnerability/PT-2025-37434
More Express XSS Sanitizer project vulnerabilities
- TI-2026-26320 Express XSS Sanitizer: allowedTags/allowedAttributes bypass leads to permissive sanitization (XSS risk) CVSS 3.1HIGH 8.2
- TI-2022-05570 Prototype pollution in express-xss-sanitizer CVSS 3.1HIGH 7.3
Sources
- CVE-2025-59364 · CVE Program
- CVE-2025-59364 · NVD
- FIRST EPSS
- GHSA-hvq2-wf92-j4f3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences