Malicious Code Injection in lentengjoko-tool: A Threat to npm Users
Summary
MAL-2025-105078: Malicious code in lentengjoko-tool (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 lentengjoko-tool package is part of the npm ecosystem, primarily used for various development tasks. However, it has been identified as part of a malicious campaign that exploits npm's package management system. This package is associated with the tea.xyz token reward initiative, which has been flooding the npm registry with harmful packages designed to inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability in lentengjoko-tool stems from its malicious payload that modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior is intended to pollute the npm registry and can lead to significant security risks, including unauthorized access to sensitive data and the potential for further exploitation of affected systems. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to continuously republish variants of the package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lentengjoko-tool
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 lentengjoko-tool package and replace it with alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before installation.
Conclusion
The lentengjoko-tool package poses a significant security threat due to its malicious code designed to manipulate npm's package management system. It is essential for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for lentengjoko-tool →
FAQ
lentengjoko-tool is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated scripts.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially exposing your project to further security risks and data breaches.
You should uninstall the package immediately using the command npm uninstall lentengjoko-tool and review your project for any other potentially harmful packages.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities without signup at the Vulert playground.
Yes, consider using other reputable npm packages that offer similar functionalities but do not carry the associated risks of malicious behavior.