Malicious Code Detected in consent_decree Package - Security Alert
Summary
MAL-2025-17497: Malicious code in consent_decree (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 consent_decree package is an npm library designed to facilitate the management of consent agreements in various applications. It provides functionalities that allow developers to implement consent management features seamlessly. However, it has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the consent_decree package stems from the inclusion of malicious code that can compromise the security of applications using this package. This code could potentially lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall consent_decree
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 temporary measure, consider removing the consent_decree package from your project until a secure version is released. You can do this by executing: npm uninstall consent_decree. This will help mitigate any immediate risks associated with the malicious code.
Conclusion
The consent_decree package has been found to contain malicious code, posing significant security risks to applications. It is crucial for developers to update or remove the package to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for consent_decree →
FAQ
The consent_decree package is used for managing consent agreements in applications, allowing developers to implement consent management features.
The malicious code was identified through security audits and reports from tools like Amazon Inspector, which monitor for vulnerabilities in open-source packages.
Using the compromised version of consent_decree can lead to unauthorized access, data breaches, and potential exploitation of your application.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.