Malicious Code Injection in kentung-7 Package: npm Vulnerability Overview
Summary
MAL-2025-157553: Malicious code in kentung-7 (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 kentung-7 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 token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the kentung-7 package originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to a pollution of the npm registry. The malicious payload can potentially allow unauthorized access to sensitive information and disrupt the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kentung-7
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 kentung-7 package from your project by executing 'npm uninstall kentung-7'. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The kentung-7 package presents a significant security risk due to its malicious code that alters package metadata and pollutes the npm registry. Users are advised to uninstall the package and monitor their applications for vulnerabilities using tools like Vulert.
See every vulnerability recorded for kentung-7 →
FAQ
The kentung-7 package is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially exposing sensitive information and disrupting your application's functionality.
If you are using kentung-7, you should uninstall the package immediately and check for any updates or patches that address the vulnerability.
Yes, you can use Vulert to monitor your application for open-source vulnerabilities in real-time. It requires only the package-lock.json file for analysis.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.