Malicious Code Injection in patria-enting57-ruro Package - npm Vulnerability
Summary
MAL-2025-106957: Malicious code in patria-enting57-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-enting57-ruro package is part of a series of malicious packages that emerged during the tea.xyz token reward campaign on npm. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in the patria-enting57-ruro package stems from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also exposes developers to potential security risks by inflating their reputation scores with untrustworthy packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-enting57-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 avoid using the patria-enting57-ruro package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The patria-enting57-ruro package poses a significant threat due to its malicious behavior of modifying package files and republishing variants. It is essential to remove this package from your project and adopt best practices for dependency management to safeguard your application from such vulnerabilities.
See every vulnerability recorded for patria-enting57-ruro →
FAQ
The patria-enting57-ruro package is a malicious npm package that is part of a campaign to inflate developer reputation scores by generating and publishing derivative packages.
This vulnerability can compromise the integrity of your project by introducing untrustworthy code and potentially exposing your application to security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you find the patria-enting57-ruro package in your project, you should uninstall it immediately using 'npm uninstall patria-enting57-ruro' and audit your dependencies for any other malicious packages.
To prevent similar vulnerabilities, regularly audit your dependencies, use trusted packages, and stay informed about security advisories related to the packages you use.