Malicious Code Injection in kentung-8: A Threat to npm Ecosystem
Summary
MAL-2025-157564: Malicious code in kentung-8 (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 package 'kentung-8' is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing derivative packages with altered metadata, thereby inflating developer reputation scores.
Vulnerability Detail
The vulnerability in 'kentung-8' 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 not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kentung-8
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 'kentung-8' and any other packages associated with the tea.xyz campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The 'kentung-8' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to safeguard their applications from such vulnerabilities.
See every vulnerability recorded for kentung-8 →
FAQ
'kentung-8' is an npm package that has been identified as malicious, part of a campaign to manipulate the npm registry.
The package can modify your project's package.json file, leading to the installation of potentially harmful derivatives and compromising your application's security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Uninstall 'kentung-8' immediately using the command 'npm uninstall kentung-8' and audit your dependencies for any other malicious packages.
Regularly audit your dependencies, use trusted packages, and consider using tools like Vulert to monitor for vulnerabilities in real-time.