Malicious Code Vulnerability in constitutional_squirrel_0xrequest Package
Summary
MAL-2025-100899: Malicious code in constitutional_squirrel_0xrequest (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_squirrel_0xrequest package is part of the npm ecosystem, often utilized in various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood npm with packages that manipulate developer reputation scores. This package, like others in the campaign, is designed to generate and publish derivative packages automatically, leading to potential misuse and pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the constitutional_squirrel_0xrequest package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names, primarily themed around Indonesian culture. The malicious payload continuously republishes these variants, which can lead to a polluted npm registry and compromise the integrity of the software supply chain. Developers using this package may unknowingly contribute to the proliferation of these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall constitutional_squirrel_0xrequest
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 avoid using the constitutional_squirrel_0xrequest package and look for alternative packages that provide similar functionality without the associated risks. Additionally, ensure that your package.json file is monitored for any unauthorized changes.
Conclusion
The constitutional_squirrel_0xrequest package contains a serious vulnerability due to embedded malicious code that alters package metadata and can lead to the pollution of the npm registry. It is essential to remove this package and monitor your project for any unauthorized changes to maintain the integrity of your software.
See every vulnerability recorded for constitutional_squirrel_0xrequest →
FAQ
It is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The malicious code modifies your package.json file and can lead to the continuous republishing of harmful packages, potentially compromising your application's integrity.
You should uninstall the constitutional_squirrel_0xrequest package immediately and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on known vulnerabilities in the packages you use.