Critical Malicious Code Vulnerability in mongos-api Package
Summary
MAL-2026-1201: Malicious code in mongos-api (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 mongos-api package is a Node.js library designed to facilitate interactions with MongoDB databases. It provides a set of APIs for developers to easily manage database operations. However, this package has been compromised, leading to severe security risks for any application utilizing it. The malicious code embedded within can potentially grant unauthorized access to sensitive data and system controls.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code in the mongos-api package, identified as GHSA-7w62-875h-3rvj. This code can fully compromise any computer running the package, allowing attackers to access secrets and keys stored on the system. The implications are dire, as the malicious code may persist even after the package is removed, posing ongoing security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mongos-api
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
Currently, the only effective workaround is to uninstall the mongos-api package. Use the following command to remove it: npm uninstall mongos-api. After removal, assess your system for any lingering malicious software.
Conclusion
The discovery of malicious code in the mongos-api package poses a significant threat to users. Immediate action is required to uninstall the package and secure any sensitive information. Regular monitoring for vulnerabilities, such as through Vulert, can help prevent future risks.
See every vulnerability recorded for mongos-api →
FAQ
Immediately uninstall the mongos-api package and rotate any sensitive credentials stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is impacted by this vulnerability without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and complete system compromise.
As of now, there is no patched version available. The best course of action is to uninstall the package.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time insights without requiring code access.