Malicious Code Injection in npdhrl-devapp: A Threat to npm Ecosystem
Summary
MAL-2025-106401: Malicious code in npdhrl-devapp (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 npdhrl-devapp package is part of the npm ecosystem, which is widely used for JavaScript package management. 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 often contain scripts that manipulate package metadata and can harm developers' reputations and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in npdhrl-devapp originates from its association with a malicious campaign that generates and publishes numerous derivative packages with randomized names. These packages contain scripts that modify the package.json file by removing private flags, altering version numbers, and continuously republishing variants. This behavior not only pollutes 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 npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall npdhrl-devapp
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 npdhrl-devapp package altogether. If it is already included in your project, you can remove it by running the command: npm uninstall npdhrl-devapp. Additionally, consider using tools like Vulert to monitor your package dependencies for vulnerabilities.
Conclusion
The npdhrl-devapp package poses a significant risk due to its malicious behavior of flooding the npm registry with compromised packages. It is crucial for developers to be aware of this vulnerability, take immediate action to remove the affected package, and utilize tools like Vulert for ongoing monitoring of their dependencies.
See every vulnerability recorded for npdhrl-devapp →
FAQ
npdhrl-devapp is an npm package that has been identified as part of a malicious campaign aimed at flooding the npm registry with compromised packages.
This vulnerability can lead to the inclusion of malicious code in your project, potentially compromising security and affecting the integrity of your application.
You should uninstall the npdhrl-devapp package immediately using the command: npm uninstall npdhrl-devapp.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.