ioredis is vulnerable to Prototype Pollution
55
CVE Score
Medium
Prototype Pollution
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.
Upgrade the ioredis library to the patch version.
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).
2.0.0 - 5.11.1
Fixed in 6.0.0ioredis is vulnerable to Prototype Pollution in versions 2.0.0 - 5.11.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.