Skip to main content
CVE-2025-59364VulnerabilityPublished Updated

CVE-2025-59364: Express XSS Sanitizer · Uncontrolled Recursion

Affects Express XSS SanitizerSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Express XSS Sanitizer project Express XSS SanitizerAffected
  • =2.0.0
Fixed in–

AI-suggested

To mitigate this vulnerability, European organizations should first identify any usage of the Express XSS Sanitizer package version 2.0.0 within their Node.js applications. 2) Implement input validation and size limits on JSON request bodies at the application or API gateway level to prevent excessively nested or large payloads that could trigger recursion. 3) Employ runtime protections such as limiting the maximum call stack size or using Node.js process monitoring to detect and mitigate abnormal resource consumption. 4) Monitor application logs and network traffic for unusual patterns indicative of recursive payload attempts. 5) Engage with the Express XSS Sanitizer maintainers or community to track patch releases and apply updates promptly once available. 6) Conduct security testing, including fuzzing and recursive input testing, to identify similar recursion vulnerabilities in custom sanitization code. These targeted measures go beyond generic advice by focusing on controlling recursion depth, input size, and alternative sanitization strategies.

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.

References

Community reviews

Loading reviews…