Malicious Code Injection in kuroichi12-function-huge Package
Summary
MAL-2025-157920: Malicious code in kuroichi12-function-huge (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 kuroichi12-function-huge package is part of the npm ecosystem, primarily used for JavaScript development. It is often utilized in various applications to provide specific functionalities. However, this package has been identified as part of a malicious campaign that aims to manipulate the npm registry by generating and publishing numerous derivative packages with altered metadata.
Vulnerability Detail
The vulnerability arises from malicious code embedded within the kuroichi12-function-huge package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and creating random package names, which ultimately leads to the pollution of the npm registry. The origin of this issue is linked to a campaign that incentivizes developers to inflate their reputation scores through the automatic publication of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kuroichi12-function-huge
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 kuroichi12-function-huge package from your project by executing the command: npm uninstall kuroichi12-function-huge. This will prevent any malicious code from executing while you seek a safer alternative package.
Conclusion
The kuroichi12-function-huge package has been identified as containing malicious code that can compromise the integrity of your project. It is crucial to take immediate action by updating or removing the package to safeguard your application from potential threats.
See every vulnerability recorded for kuroichi12-function-huge →
FAQ
The malicious code modifies package metadata to remove private flags and generates random package names, which can lead to npm registry pollution.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Using this package can lead to security risks, including the exposure of sensitive information and the degradation of your project's integrity due to registry pollution.
Yes, Vulert can monitor your project in real-time for open-source vulnerabilities using just the package-lock.json file.
If no patched version is available, it is advisable to remove the package from your project and look for alternative packages that provide similar functionality.