Malicious Code Injection in celestialcartographer Package
Summary
MAL-2025-171007: Malicious code in celestialcartographer (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 celestialcartographer package is a Node.js library available through npm, designed for mapping celestial bodies and providing astronomical data. However, it has been identified as part of a malicious campaign that exploits npm's package publishing system, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability originates from the celestialcartographer package being associated with a token reward campaign that floods npm with malicious packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names, ultimately republishing variants to manipulate developer reputation scores. This behavior can lead to the pollution of the npm registry and 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 celestialcartographer
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, avoid using the celestialcartographer package and consider alternative libraries for celestial mapping. Additionally, ensure that your package.json file does not include any references to this package.
Conclusion
The celestialcartographer package has been identified as a vector for malicious code injection, posing significant risks to developers and their applications. It is essential to remove this package and monitor your projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for celestialcartographer →
FAQ
celestialcartographer is a Node.js library designed for mapping celestial bodies and providing astronomical data.
The vulnerability can lead to the injection of malicious code, potentially compromising your application's security and integrity.
You should uninstall the celestialcartographer package immediately and check for any other affected packages in your project.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.