Malicious Code Injection in lutfi-lapis7-ruro: A Threat to npm Packages
Summary
MAL-2025-105409: Malicious code in lutfi-lapis7-ruro (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 lutfi-lapis7-ruro package is part of the npm ecosystem, which is widely used for JavaScript development. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards. The package's functionality is compromised due to its malicious intent, making it a significant risk for developers using it.
Vulnerability Detail
The vulnerability in lutfi-lapis7-ruro originates from its association with the tea.xyz token reward campaign. It includes scripts that automatically modify the package.json file to remove private flags, alter version numbers, and create random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm other developers by making it difficult to find legitimate packages. The malicious payload poses a risk of reputation damage and could lead to the installation of compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lutfi-lapis7-ruro
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, avoid using the lutfi-lapis7-ruro package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The lutfi-lapis7-ruro package poses a significant risk due to its malicious code designed to exploit the npm registry. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for lutfi-lapis7-ruro →
FAQ
lutfi-lapis7-ruro is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
The vulnerability can lead to the installation of compromised packages, which may harm your project's integrity and reputation.
You should uninstall the package immediately using npm uninstall lutfi-lapis7-ruro to mitigate any risks.
Yes, tools like Vulert can monitor your project for open-source vulnerabilities using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.