Malicious Code Injection in nana-lapis74-riris: npm Package Vulnerability
Summary
MAL-2025-88694: Malicious code in nana-lapis74-riris (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 package 'nana-lapis74-riris' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. However, this package has been identified as containing malicious code that compromises its integrity and the npm registry.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the 'nana-lapis74-riris' package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores for token rewards, leading to the continuous republishing of variants that pollute the npm registry. This not only affects the integrity of the npm ecosystem but also poses a risk to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nana-lapis74-riris
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 'nana-lapis74-riris' package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'nana-lapis74-riris' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and stay vigilant about their dependencies to maintain the security of their applications.
See every vulnerability recorded for nana-lapis74-riris →
FAQ
It is an npm package that is part of a token reward campaign but has been identified as containing malicious code.
Using this package can compromise your project's integrity and expose it to further vulnerabilities through the polluted npm registry.
You should immediately remove the package from your project and monitor for any updates or patches.
Yes, you can use Vulert's playground at Vulert Scanner to check for vulnerabilities in your application without needing to sign up.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.