Malicious Code Injection in atlas-global-mysql-pegasus: npm Package Vulnerability
Summary
MAL-2025-139644: Malicious code in atlas-global-mysql-pegasus (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 atlas-global-mysql-pegasus package is part of the npm ecosystem, typically used for database interactions in JavaScript applications. It is designed to facilitate seamless communication with MySQL databases. However, this package has been identified as part of a malicious campaign that exploits npm's package publishing system, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability stems from the package being associated with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that automatically modify the package.json file, removing private flags and changing version numbers. The malicious payload generates random package names and continuously republishes variants, which can lead to reputation inflation and potential exploitation of unsuspecting developers. This behavior not only pollutes the npm registry but also poses a risk of introducing untrusted code into applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall atlas-global-mysql-pegasus
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 avoid using the atlas-global-mysql-pegasus package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The atlas-global-mysql-pegasus 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 for updates or alternatives to ensure the security of your projects. Utilizing tools like Vulert can further enhance your ability to manage and mitigate such vulnerabilities effectively.
See every vulnerability recorded for atlas-global-mysql-pegasus →
FAQ
The package contains malicious code that modifies package.json files and floods the npm registry with untrusted packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Remove the atlas-global-mysql-pegasus package from your project and check for any patched versions before reinstalling.
Yes, consider using other well-established npm packages for MySQL database interactions that do not have known vulnerabilities.
Vulert uses the package-lock.json file to monitor your dependencies and alert you in real-time about any open-source vulnerabilities.