Malicious Code Injection in nurul-rangi79-riris: npm Package Vulnerability
Summary
MAL-2025-88930: Malicious code in nurul-rangi79-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 'nurul-rangi79-riris' 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 are often used to inflate developer reputation scores for token rewards. However, it has been compromised to include malicious scripts that can alter package metadata and republish variants, leading to potential abuse within the npm registry.
Vulnerability Detail
The vulnerability in 'nurul-rangi79-riris' originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This behavior not only compromises the integrity of the affected package but also poses a risk to developers who may unknowingly use these malicious variants in their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nurul-rangi79-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 remove the 'nurul-rangi79-riris' package from your project by executing the following command: 'npm uninstall nurul-rangi79-riris'. This will prevent any malicious code from executing until a fix is applied.
Conclusion
The 'nurul-rangi79-riris' package has been identified as containing malicious code that can compromise the integrity of applications using it. It is crucial for developers to stay informed about vulnerabilities and take proactive measures to secure their projects.
See every vulnerability recorded for nurul-rangi79-riris →
FAQ
The vulnerability involves malicious code that alters package metadata and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Using the affected package can lead to the inclusion of malicious code in your application, potentially compromising security and integrity.
Regularly updating packages and using tools like Vulert to monitor vulnerabilities can help prevent similar issues.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate risk.