Malicious Code Injection in surya-kentang84-riris Package
Summary
MAL-2025-90836: Malicious code in surya-kentang84-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 surya-kentang84-riris 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 originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names that are themed around Indonesian culture. This behavior leads to the continuous republishing of these variants, polluting the npm registry and potentially affecting other developers and applications relying on npm packages. The malicious scripts included in the package (auto.js, autopublish.js, etc.) are designed to automate these harmful actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall surya-kentang84-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 this package by using npm's package-lock.json file to monitor dependencies. Additionally, consider using tools like Vulert to check for vulnerabilities in your application. You can access the Vulert playground at https://vulert.com/scanner to see if your application is affected by this vulnerability without needing to sign up.
Conclusion
The surya-kentang84-riris package has been identified as containing malicious code that compromises the integrity of the npm registry. It is essential to uninstall this package and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for surya-kentang84-riris →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The malicious code can modify your package.json file, remove private flags, and lead to the pollution of the npm registry, potentially affecting other packages you depend on.
You should uninstall the package immediately using 'npm uninstall surya-kentang84-riris' and check for any updates or patches.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time. Visit https://vulert.com for more information.
Regularly audit your dependencies, use tools like Vulert, and stay updated with the latest security advisories for the packages you use.