Malicious Code Injection in Constellationhunter Package
Summary
MAL-2025-171064: Malicious code in constellationhunter (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
Constellationhunter is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities related to token rewards but has been compromised, leading to significant security concerns. The vulnerability stems from malicious scripts that manipulate the package's metadata, potentially affecting developers and users relying on this package.
Vulnerability Detail
The vulnerability in the Constellationhunter package originates from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names, which can lead to the pollution of the npm registry. The ramifications include the potential for developers to unknowingly use compromised packages, which can affect their applications' integrity and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall constellationhunter
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 Constellationhunter package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The Constellationhunter package has been identified as containing malicious code that can compromise the security of applications using it. It is crucial for developers to remove this package and monitor for updates or alternatives to ensure the integrity of their projects.
See every vulnerability recorded for constellationhunter →
FAQ
Constellationhunter is an npm package associated with the tea.xyz token reward campaign, designed to facilitate token-related functionalities.
The vulnerability can lead to the use of compromised packages, which may introduce malicious code into your application, affecting its security and integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have used the Constellationhunter package, it is recommended to remove it from your project and update to a secure version if available.
Yes, consider using other npm packages that offer similar functionalities without the associated risks of malicious code.