Intel

AIKIDO-2026-538318

ioredis is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

55

Medium Risk

This Affects:

JSioredis
2.0.0 - 5.11.1
Fixed in 6.0.0
Are you affected? Scan for Free

TL;DR

The Redis Cluster client uses the slot token from a MOVED redirect error reply directly as an index into its internal slots array without validating it. A malicious or compromised cluster node, or an entity able to tamper with cluster traffic through MITM or DNS poisoning, can return a redirect whose slot token is __proto__, so that slots["__proto__"] resolves to Array.prototype and the subsequent write reaches Array.prototype, polluting every array in the process. This global prototype pollution can corrupt application data structures and disrupt process availability. The fix validates that the slot is an integer within the cluster range before using it and rejects malformed redirects with the original error.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you connect to Redis in Cluster mode where cluster nodes or the network path to them are not fully trusted (for example missing or unverified TLS, shared multi-tenant Redis, or DNS that can be redirected).

Background info

ioredis is vulnerable to Prototype Pollution in versions 2.0.0 - 5.11.1.

How to fix this

Upgrade the ioredis library to the patch version.