Malicious Code Injection in astro-got-spectron-halley: npm Package Vulnerability
Summary
MAL-2025-139607: Malicious code in astro-got-spectron-halley (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 astro-got-spectron-halley package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is designed to facilitate various functionalities within applications. However, it has been identified as part of a malicious campaign that aims to exploit npm's publishing features, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages contain scripts that automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior can lead to the pollution of the npm registry and inflate developer reputation scores fraudulently, posing significant risks to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall astro-got-spectron-halley
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, you can avoid using the astro-got-spectron-halley package and look for alternative packages that provide similar functionalities without the associated risks. Always verify the source and reputation of packages before integrating them into your projects.
Conclusion
The astro-got-spectron-halley package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and users. It is crucial to remove this package and adopt best practices for dependency management to safeguard your applications.
See every vulnerability recorded for astro-got-spectron-halley →
FAQ
The package contains malicious code that modifies package.json and publishes variants to inflate developer reputation scores fraudulently.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
You should uninstall the astro-got-spectron-halley package immediately using the command: npm uninstall astro-got-spectron-halley.
Yes, consider looking for other npm packages that offer similar functionalities but have a good reputation and are not associated with malicious activities.
Regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.