Malicious Code Injection in astro-got-spectron-halley: npm Package Vulnerability

astro-got-spectron-halley Updated 25 Nov 2025

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-139607: Malicious code in astro-got-spectron-halley (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.