Unbounded Recursion Vulnerability in Express XSS Sanitizer for Node.js
CVE-2025-59364

5.3MEDIUM

What is CVE-2025-59364?

The Express XSS Sanitizer package for Node.js, up to version 2.0.0, is vulnerable to an unbounded recursion issue in its 'sanitize' function found in lib/sanitize.js. This vulnerability can be exploited through specially crafted JSON request bodies, leading to potential denial of service and degradation of application performance. Developers using this package should review their implementations and upgrade to secure versions to mitigate risks.

Affected Version(s)

Express XSS Sanitizer 2.0.0

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.