Uncontrolled Recursion Affecting ioredis package, versions <6.0.0-beta.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-IOREDIS-19963957
  • published20 Sept 2026
  • disclosed17 Sept 2026
  • creditWayde Shi

Introduced: 17 Sep 2026

NewCVE-2026-93435  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade ioredis to version 6.0.0-beta.1 or higher.

Overview

ioredis is a Redis client for Node.js.

Affected versions of this package are vulnerable to Uncontrolled Recursion in the RESP protocol parser in lib/parser.js. An attacker can crash the Node.js client process by sending crafted RESP byte streams with repeated nested array headers. The parser recurses while handling nested arrays, exhausting the V8 call stack and triggering an uncaught RangeError. In affected deployments that consume data from a malicious or compromised Redis endpoint, this terminates the process and disrupts Redis client operations.

CVSS Base Scores

version 4.0
version 3.1