Malicious Code Injection in constitutional_snake_requirement Package
Summary
MAL-2025-93754: Malicious code in constitutional_snake_requirement (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 constitutional_snake_requirement package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others, is intended to facilitate certain functionalities within applications. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages designed to manipulate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the constitutional_snake_requirement package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on this package. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs scripts to automate the generation and publication of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall constitutional_snake_requirement
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 workaround, you can remove the package from your project dependencies. Use the following command to uninstall it: npm uninstall constitutional_snake_requirement. This will help mitigate the risks associated with the malicious code until a secure version is released.
Conclusion
The constitutional_snake_requirement package poses a significant risk due to its malicious code injection capabilities. It is crucial for developers to be aware of such vulnerabilities and take immediate action to protect their applications. Regular monitoring and updates are essential to maintain security in the npm ecosystem.
See every vulnerability recorded for constitutional_snake_requirement →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate developer reputation scores.
The vulnerability can lead to the injection of malicious code, which may compromise the integrity and security of your application.
You should uninstall the constitutional_snake_requirement package immediately to mitigate any risks.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.