Malicious Code Injection in kentung-30 Package: A Threat to npm Users
Summary
MAL-2025-157511: Malicious code in kentung-30 (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-30 package is part of the npm ecosystem, primarily used for various JavaScript projects. It is often involved in token reward campaigns, which can lead to the proliferation of malicious packages. This package has been identified as part of a scheme that generates and publishes derivative packages to manipulate developer reputation scores.
Vulnerability Detail
The vulnerability in the kentung-30 package originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file to remove private flags, alter version numbers, and create random package names. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, leading to potential security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kentung-30
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 kentung-30 package and any of its derivatives. Additionally, consider using npm audit to identify and address vulnerabilities in your project dependencies.
Conclusion
The kentung-30 package poses a significant threat due to its malicious code that alters project files and publishes compromised packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for kentung-30 →
FAQ
The kentung-30 package is an npm package involved in token reward campaigns, which has been identified as containing malicious code.
The malicious code modifies your package.json file and can lead to the publication of compromised packages, affecting the integrity of your project.
You should immediately remove the kentung-30 package from your project and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.