Malicious Code Injection in riyanto-118 Package - npm Vulnerability
Summary
MAL-2025-165102: Malicious code in riyanto-118 (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 riyanto-118 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 the npm registry.
Vulnerability Detail
The vulnerability in the riyanto-118 package originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall riyanto-118
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 riyanto-118 package altogether. If it is already included in your project, you can remove it by running the following command: npm uninstall riyanto-118. Additionally, consider using alternative packages that do not exhibit malicious behavior.
Conclusion
The riyanto-118 package has been identified as containing malicious code that compromises the integrity of the npm registry and poses security risks to developers. It is essential to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for riyanto-118 →
FAQ
The riyanto-118 package is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and functionality.
You should immediately uninstall the riyanto-118 package from your project and monitor for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by the riyanto-118 vulnerability without requiring access to the code or installation.