Malicious Code Vulnerability in astro-postgres-dependencies-bellatrix Package
Summary
MAL-2025-139615: Malicious code in astro-postgres-dependencies-bellatrix (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-postgres-dependencies-bellatrix package is part of the npm ecosystem, designed to facilitate interactions with PostgreSQL databases in JavaScript applications. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package, like others in the campaign, is engineered to manipulate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign associated with the tea.xyz token reward system. It includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall astro-postgres-dependencies-bellatrix
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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include this package in its dependencies or devDependencies.
Conclusion
The astro-postgres-dependencies-bellatrix package is compromised by malicious code that can affect the integrity of applications. It is essential to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for astro-postgres-dependencies-bellatrix →
FAQ
The package contains malicious code that modifies package.json files and republishes variants to the npm registry, potentially compromising applications.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
You should uninstall the package immediately using 'npm uninstall astro-postgres-dependencies-bellatrix' and check for any affected dependencies.
Yes, the vulnerability can lead to the pollution of the npm registry and may affect the integrity and security of applications that rely on this package.
Regularly monitor your dependencies using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.