Malicious Code Injection in hendra-martabak4-ruro Package
Summary
MAL-2025-103675: Malicious code in hendra-martabak4-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 hendra-martabak4-ruro package is part of the npm ecosystem, primarily used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood npm with packages that manipulate developer reputation scores. This package, like others in the campaign, is designed to automatically generate and publish derivative packages, making it susceptible to malicious exploitation.
Vulnerability Detail
The vulnerability in the hendra-martabak4-ruro package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, contributing to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to inflate developer reputation scores. The ramifications include potential security risks for applications relying on this package, as it can lead to unauthorized access and manipulation of package dependencies.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hendra-martabak4-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 hendra-martabak4-ruro package from your project if it is not essential. Use the following command to uninstall it: npm uninstall hendra-martabak4-ruro. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The hendra-martabak4-ruro package contains a significant vulnerability due to malicious code that alters package configurations. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications from potential security threats.
See every vulnerability recorded for hendra-martabak4-ruro →
FAQ
The hendra-martabak4-ruro package is an npm package associated with the tea.xyz token reward campaign, which is known for flooding the npm registry with malicious packages.
The malicious code can modify your package.json file, leading to unauthorized changes in your application dependencies and potentially compromising your application's security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected without any signup.
If immediate updates are not possible, consider removing the package from your project and using alternative packages that do not have known vulnerabilities.
More information can be found in the package's repository and through security advisories related to npm packages.