Malicious Code Injection in mahesa-oncom49-riris Package
Summary
MAL-2025-88158: Malicious code in mahesa-oncom49-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-oncom49-riris package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. However, this package 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 malicious payload embedded within the mahesa-oncom49-riris package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. It continuously republishes these variants to the npm registry, which can lead to reputation inflation for developers and pollution of the registry. The ramifications include potential exposure of applications to further malicious activities and a compromised development environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahesa-oncom49-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 malicious package by using npm's package-lock.json file to lock your dependencies. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The mahesa-oncom49-riris package contains malicious code that poses significant risks to applications relying on it. Immediate action is required to uninstall the package and monitor your project for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for mahesa-oncom49-riris →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of packages.
The malicious code modifies package.json files, removes private flags, and can lead to the pollution of the npm registry, potentially exposing your application to further threats.
You should uninstall the mahesa-oncom49-riris package immediately and replace it with a secure alternative.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time. You can also check your application using the Vulert playground.
There is no patch for the mahesa-oncom49-riris package as it is recommended to uninstall it completely.