Malicious Code Injection in joko-tek30-ruro Package - npm Vulnerability
Summary
MAL-2025-104653: Malicious code in joko-tek30-ruro (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 joko-tek30-ruro package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of this package is to facilitate the automatic generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. However, this functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the joko-tek30-ruro package stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall joko-tek30-ruro
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 remove the joko-tek30-ruro package from your project by executing the command: npm uninstall joko-tek30-ruro. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The joko-tek30-ruro package has been identified as containing malicious code that poses a significant risk to the npm ecosystem. It is essential for developers to take immediate action by updating or uninstalling the package to safeguard their applications. Utilizing tools like Vulert can further enhance security by providing real-time monitoring of vulnerabilities.
See every vulnerability recorded for joko-tek30-ruro →
FAQ
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of applications that depend on this package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to prevent potential exploitation.
While specific exploits have not been detailed, the nature of the vulnerability suggests that it could be leveraged to create and distribute malicious packages.
Vulert uses the package-lock.json file to monitor and alert for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.