Intel

AIKIDO-2026-538318

ioredis is vulnerable to Prototype Pollution

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 3, 2026
August 3, 2026

55

CVE Score

Medium

Prototype Pollution

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.

How do I fix this?

Upgrade the ioredis library to the patch version.

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).

Package

Versions

2.0.0 - 5.11.1

Fixed in 6.0.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea