Malicious Code Injection in patria-rangi14-riris Package
Summary
MAL-2025-89434: Malicious code in patria-rangi14-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 patria-rangi14-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been linked to a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The vulnerability stems from the package's design, which allows it to execute harmful scripts that modify its own metadata and republish itself under various names, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in the patria-rangi14-riris package originates from its association with the tea.xyz token reward campaign. This campaign utilizes autopublish scripts to create and publish numerous derivative packages with randomized names. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names, which can lead to a significant increase in the number of malicious packages in the npm registry. This not only affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-rangi14-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 prevent the installation of the patria-rangi14-riris package by using the following command to uninstall it: npm uninstall patria-rangi14-riris. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The patria-rangi14-riris package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with harmful variants. It is essential for developers to remove this package from their projects and utilize tools for ongoing vulnerability monitoring.
See every vulnerability recorded for patria-rangi14-riris →
FAQ
The patria-rangi14-riris package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to the installation of malicious code that modifies your project's package metadata and can result in the proliferation of harmful packages in the npm registry.
If you have installed the patria-rangi14-riris package, it is crucial to uninstall it immediately and monitor your project for any unusual behavior.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file. You can also check for vulnerabilities using the Vulert playground without any signup.
To prevent future vulnerabilities, regularly audit your dependencies using npm audit, keep your packages updated, and consider using tools like Vulert for real-time monitoring.