Critical Malicious Code Vulnerability in redis-cookie-parser Package
Summary
MAL-2026-67: Malicious code in redis-cookie-parser (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The redis-cookie-parser package is a Node.js library designed to parse cookies for Redis applications. It is commonly used in web development to manage user sessions and store cookie data efficiently. However, this package has been compromised, leading to significant security risks for any application that utilizes it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the redis-cookie-parser package. This code can fully compromise any computer that has the package installed or running, allowing unauthorized access to sensitive information such as secrets and keys. The origin of this vulnerability is linked to a malicious actor who has manipulated the package, making it imperative for users to take immediate action to secure their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall redis-cookie-parser
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, you can temporarily replace the redis-cookie-parser package with an alternative cookie parsing library until the vulnerability is resolved. Ensure to thoroughly test your application for compatibility with the new library.
Conclusion
The redis-cookie-parser package has been compromised with malicious code, posing a severe risk to any systems using it. Immediate action is required to remove the package and secure sensitive information. Users are encouraged to monitor their applications for vulnerabilities and consider alternative libraries until a safe version is available.
See every vulnerability recorded for redis-cookie-parser →
FAQ
Immediately remove the redis-cookie-parser package from your application and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Currently, there is no patched version available. It is recommended to remove the package until a secure version is released.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and complete system compromise.
While many npm packages are safe, it is essential to regularly monitor and audit your dependencies for vulnerabilities using tools like Vulert.