CVE-2025-59364
JavaScript vulnerability analysis and mitigation

Overview

The express-xss-sanitizer (aka Express XSS Sanitizer) package through version 2.0.0 for Node.js contains a denial-of-service vulnerability due to unbounded recursion depth in the sanitize() function located in lib/sanitize.js when processing JSON request bodies (MITRE, GitHub POC). The vulnerability was discovered and disclosed on September 14, 2025.

Technical details

The vulnerability stems from the sanitize() function's implementation in lib/sanitize.js which recursively traverses arrays and objects without implementing maximum depth limits, node limits, or cycle detection mechanisms. This implementation flaw can trigger a RangeError exception with the message 'Maximum call stack size exceeded' when processing deeply nested JSON payloads. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (MITRE).

Impact

When successfully exploited, this vulnerability can lead to denial of service conditions by starving the event loop and causing repeated 500 responses or process termination. The impact primarily affects the availability of applications using the vulnerable express-xss-sanitizer package (GitHub POC).

Mitigation and workarounds

The vulnerability affects all versions through 2.0.0 of the express-xss-sanitizer package. Users should monitor the project's GitHub repository and npm package page for security updates and new releases that address this vulnerability (Express XSS Sanitizer).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management