Malicious Code Injection in delightful_koi_z3n: npm Package Vulnerability
Summary
MAL-2025-93978: Malicious code in delightful_koi_z3n (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 'delightful_koi_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of these packages is to generate and publish derivative packages that inflate developer reputation scores for token rewards. However, this functionality has been exploited to introduce malicious code.
Vulnerability Detail
The vulnerability in 'delightful_koi_z3n' 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 the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk of unintentional dependency on malicious code for developers using this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall delightful_koi_z3n
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 'delightful_koi_z3n' package from your project by executing 'npm uninstall delightful_koi_z3n'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The 'delightful_koi_z3n' package has been identified as containing malicious code that poses significant risks to developers and their applications. It is crucial to take immediate action by updating or removing the package to safeguard your projects from potential threats.
See every vulnerability recorded for delightful_koi_z3n →
FAQ
The vulnerability involves malicious code that modifies the package.json file and repackages the software, leading to potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Using this package can lead to unintentional dependency on malicious code, potentially compromising your application's security and integrity.
Regularly updating packages, using tools like Vulert for monitoring, and auditing dependencies can help prevent similar vulnerabilities.
If an immediate update is not possible, consider removing the package from your project as a temporary measure to mitigate risks.