ioredis is vulnerable to Prototype Pollution
55
Medium Risk
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.
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).
ioredis is vulnerable to Prototype Pollution in versions 2.0.0 - 5.11.1.
Upgrade the ioredis library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant