Malicious Code Injection in harshitverma Package: A Threat to npm Ecosystem
Summary
MAL-2025-171294: Malicious code in harshitverma (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 'harshitverma' package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages typically contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in the 'harshitverma' package originates from its involvement in the tea.xyz token reward campaign, which floods the npm registry with malicious packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall harshitverma
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 'harshitverma' package from your project by executing the command: 'npm uninstall harshitverma'. This will prevent any malicious code from executing in your application until a secure version is available.
Conclusion
The 'harshitverma' package poses a significant threat due to its malicious code designed to manipulate npm registry data. It is essential for developers to take immediate action by removing this package and monitoring their applications for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for harshitverma →
FAQ
The 'harshitverma' package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the modification of your package.json file, potentially compromising your application's integrity and security.
If you have installed the 'harshitverma' package, it is crucial to uninstall it immediately and monitor your application for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.
Regularly update your npm packages to their latest versions and utilize tools like Vulert to monitor for vulnerabilities.