Malicious Code Injection in mahesa-rawon46-riris Package
Summary
MAL-2025-88167: Malicious code in mahesa-rawon46-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 mahesa-rawon46-riris package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package, like others in the campaign, is designed to manipulate npm's publishing system, potentially affecting developers' reputations and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the mahesa-rawon46-riris package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which leads to the automatic publishing of derivative packages. This behavior not only pollutes the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahesa-rawon46-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 mahesa-rawon46-riris package altogether. If you have already installed it, ensure that you do not publish any packages that depend on it until the issue is resolved.
Conclusion
The mahesa-rawon46-riris package contains a significant vulnerability that can lead to malicious code injection and pollution of the npm registry. It is crucial for developers to remove this package and monitor their projects for any dependencies that may be affected. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for mahesa-rawon46-riris →
FAQ
The mahesa-rawon46-riris package is an npm package associated with a token reward campaign that has been identified as malicious.
This vulnerability can lead to the automatic generation and publication of malicious packages, compromising the integrity of your project and the npm registry.
You should uninstall the package immediately using 'npm uninstall mahesa-rawon46-riris' and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.