Malicious Code Injection in astrodreamer: npm Package Vulnerability

astrodreamer Updated 26 Nov 2025

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-170929: Malicious code in astrodreamer (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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The astrodreamer package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities. This package is linked to the tea.xyz token reward scheme, which has led to the proliferation of numerous derivative packages aimed at inflating developer reputation scores.

Vulnerability Detail

The vulnerability in the astrodreamer package stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to continuously republish variants, polluting the npm registry and potentially compromising the integrity of other packages. The origin of this issue is traced back to a campaign that floods npm with malicious packages, specifically targeting developers involved with the tea protocol token rewards.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall astrodreamer

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 astrodreamer package from your project by executing 'npm uninstall astrodreamer'. This will prevent any malicious code from executing until a secure version is available.

Conclusion

The astrodreamer package has been identified as a vector for malicious code injection, posing significant risks to developers and the integrity of the npm registry. It is crucial to update or remove the package to safeguard your applications. Utilizing tools like Vulert can further enhance your security posture by providing real-time vulnerability alerts.

See every vulnerability recorded for astrodreamer →

Share this vulnerability

FAQ

The vulnerability involves malicious code that modifies package.json and repackages the software, leading to potential security risks.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

As a temporary measure, you can uninstall the astrodreamer package to mitigate the risk until a secure version is released.

This vulnerability can lead to the pollution of the npm registry and compromise the security of other packages, affecting a wide range of applications.

Vulert uses package-lock.json to monitor and alert users in real-time for open-source vulnerabilities, ensuring that developers are informed about potential risks.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall astrodreamer

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