Malicious Code Injection in tomi-esdoger38-apidev Package
Summary
MAL-2025-91133: Malicious code in tomi-esdoger38-apidev (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 tomi-esdoger38-apidev 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 rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of applications using it.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the tomi-esdoger38-apidev package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for applications relying on this package, as well as the degradation of the npm ecosystem due to the proliferation of these malicious variants.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tomi-esdoger38-apidev
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 tomi-esdoger38-apidev package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The tomi-esdoger38-apidev package contains malicious code that poses significant security risks to applications using it. Immediate action is required to remove the package and prevent potential exploitation. Utilizing tools like Vulert can help monitor and manage vulnerabilities in your projects effectively.
See every vulnerability recorded for tomi-esdoger38-apidev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The malicious code can modify your package.json file, remove private flags, and lead to the continuous republishing of variants, which can compromise your application's security.
You should uninstall the tomi-esdoger38-apidev package immediately using the command: npm uninstall tomi-esdoger38-apidev.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by visiting the Vulert playground.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.