Malicious Code Injection in masako-be-lisa Package: npm Vulnerability Alert
Summary
MAL-2025-160142: Malicious code in masako-be-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-be-lisa package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security concerns for developers and users alike.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the masako-be-lisa package. This payload is designed to modify the package.json file by removing private flags and altering version numbers. It also generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also aims to inflate developer reputation scores for the tea protocol token rewards campaign, potentially leading to further exploitation and pollution of the registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall masako-be-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 avoid using the masako-be-lisa package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The masako-be-lisa package poses a significant security risk due to its malicious code designed to manipulate the npm registry. Developers must take immediate action to remove this package and monitor their applications for vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your software.
See every vulnerability recorded for masako-be-lisa →
FAQ
The masako-be-lisa package is a JavaScript package available on npm, intended for use in various applications. However, it has been identified as part of a malicious campaign.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your application's integrity and security.
If you have installed the masako-be-lisa package, you should uninstall it immediately using 'npm uninstall masako-be-lisa' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Yes, consider looking for alternative packages that provide similar functionality but are verified and trusted within the community.