Malicious Code Injection in mahesa-bakso1-apidev Package
Summary
MAL-2025-88114: Malicious code in mahesa-bakso1-apidev (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 mahesa-bakso1-apidev package is part of the npm ecosystem, often used for developing APIs. It is designed to facilitate the creation and management of backend services. However, this package has been identified as part of a malicious campaign that exploits npm's publishing features to inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability stems from the package being associated with the tea.xyz token reward campaign, which 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. The malicious payload continuously republishes variants, polluting the npm registry and potentially compromising the integrity of dependent applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahesa-bakso1-apidev
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 workaround, consider using alternative packages that offer similar functionality without the associated risks. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file to alert you in real-time about open-source vulnerabilities.
Conclusion
The mahesa-bakso1-apidev package has been identified as a vector for malicious code injection, posing significant risks to applications that utilize it. Immediate action is required to remove the package and monitor for any vulnerabilities using tools like Vulert.
See every vulnerability recorded for mahesa-bakso1-apidev →
FAQ
mahesa-bakso1-apidev is an npm package used for developing APIs, but it has been compromised with malicious code.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your application's integrity and security.
You should uninstall the package immediately and consider using alternative packages that do not have known vulnerabilities.
You can use Vulert to monitor your package-lock.json file for vulnerabilities without needing to install any software.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.