Malicious Code Injection in ConstellationCrafter: npm Package Vulnerability
Summary
MAL-2025-171061: Malicious code in constellationcrafter (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
ConstellationCrafter is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate the creation and management of various projects within the npm ecosystem. However, this package has been identified as malicious, containing scripts that automatically generate and publish derivative packages with randomized names, ultimately inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the ConstellationCrafter package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a significant risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall constellationcrafter
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 ConstellationCrafter package from your project by executing the following command: npm uninstall constellationcrafter. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The ConstellationCrafter package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their projects. Immediate action is required to mitigate these risks by updating or removing the package. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in your applications.
See every vulnerability recorded for constellationcrafter →
FAQ
The main issue is that it contains malicious code that modifies package.json and publishes unauthorized derivatives, which can compromise your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If you have installed ConstellationCrafter, it is crucial to uninstall it immediately and check for any unauthorized changes in your project.
Yes, the impacts include potential security breaches, pollution of the npm registry, and loss of developer reputation due to the use of compromised packages.
Caution is advised. Always verify the integrity and reputation of packages before installation, especially those from sources involved in malicious activities.