Malicious Code Injection in masako-b-lisa Package
Summary
MAL-2025-160141: Malicious code in masako-b-lisa (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 masako-b-lisa package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to inflate developer reputation scores for token rewards, posing significant risks to users and developers relying on its integrity.
Vulnerability Detail
The vulnerability in the masako-b-lisa package originates from its association with the tea.xyz token reward campaign. It contains malicious 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, polluting the npm registry and potentially compromising the security of 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 masako-b-lisa
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 remove the masako-b-lisa package from your project by executing the following command: npm uninstall masako-b-lisa. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The masako-b-lisa package poses a significant risk due to its malicious code designed to manipulate npm registry entries. Users are advised to uninstall the package and monitor for updates. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for masako-b-lisa →
FAQ
The masako-b-lisa package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to the injection of malicious code, which may compromise the integrity and security of your application.
You should uninstall the package immediately and monitor for any updates or patches that address the vulnerability.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.