Malicious Code Injection in riyanto-125 Package: A Threat to npm Users
Summary
MAL-2025-165109: Malicious code in riyanto-125 (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-125 package is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. The primary functionality of these packages is to inflate developer reputation scores in exchange for token rewards, which poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the riyanto-125 package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. This behavior can compromise the security of applications relying on these packages, potentially introducing untrusted code into production environments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall riyanto-125
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 use the following command to prevent the installation of the riyanto-125 package: 'npm install --no-save riyanto-125'. However, the best practice is to remove the package entirely from your project.
Conclusion
The riyanto-125 package poses a serious threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant and regularly monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can aid in identifying and mitigating such risks effectively.
See every vulnerability recorded for riyanto-125 →
FAQ
The riyanto-125 package is a malicious npm package that is part of a campaign to inflate developer reputation scores by flooding the npm registry with derivative packages.
The vulnerability can introduce untrusted code into your application, potentially leading to security breaches and compromising the integrity of your software.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can help identify if your application is affected.
There is no patch available for the riyanto-125 package as it is a malicious package. The recommended action is to uninstall it and remove any dependencies on it.
If you have used the riyanto-125 package, you should immediately uninstall it and review your project's dependencies for any other malicious packages. Regularly update your dependencies to maintain security.