Malicious Code Injection in patria-tempe93-riris Package
Summary
MAL-2025-89449: Malicious code in patria-tempe93-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-tempe93-riris 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 its integrity and the security of applications that depend on it.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other packages and applications. The malicious scripts included in the package are designed to automate these processes, making it difficult for developers to detect and mitigate the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-tempe93-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 patria-tempe93-riris package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package dependencies using tools like npm audit to identify and address vulnerabilities.
Conclusion
The patria-tempe93-riris package has been identified as containing malicious code that compromises the security of applications relying on it. Immediate action is required to uninstall the package and monitor for any potential impacts on your project. Utilizing tools like Vulert can help in maintaining the security of your dependencies.
See every vulnerability recorded for patria-tempe93-riris →
FAQ
The patria-tempe93-riris package is an npm package that is part of a token reward campaign, which has been identified to contain malicious code.
The malicious code modifies your package.json, removes private flags, and generates random package names, potentially leading to security vulnerabilities and pollution of the npm registry.
You should uninstall the package immediately using npm uninstall patria-tempe93-riris and check for any other affected dependencies.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check your application against vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies using tools like npm audit, and consider using automated monitoring tools like Vulert to stay informed about vulnerabilities in your open-source packages.