Malicious Code Injection in patria-lapis62-ruro Package - npm Vulnerability
Summary
MAL-2025-106968: Malicious code in patria-lapis62-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 patria-lapis62-ruro package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious scripts embedded within the patria-lapis62-ruro package. These scripts are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers' projects by introducing untrusted code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-lapis62-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 measure, you can prevent the installation of the vulnerable package by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will disable automatic package locking and help avoid the installation of malicious packages.
Conclusion
The patria-lapis62-ruro package has been identified as containing malicious code that can compromise the npm registry and your projects. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for patria-lapis62-ruro →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can introduce malicious code into your project, potentially compromising its security and integrity.
You should remove the patria-lapis62-ruro package from your project immediately and check for any other affected packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without any signup.