Critical Malicious Code Vulnerability in dshellb Package
Summary
MAL-2025-18936: Malicious code in dshellb (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 dshellb package is an npm library designed for shell command execution and manipulation within JavaScript applications. It is commonly used for automating tasks and enhancing the functionality of Node.js applications. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the dshellb package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code can lead to unauthorized access, data breaches, and potential exploitation of the host system. The malicious nature of this code was identified by security researchers, prompting immediate attention to mitigate its effects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dshellb
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, users can replace the functionality provided by dshellb with alternative libraries that do not have known vulnerabilities. Additionally, consider implementing security measures such as input validation and sanitization to mitigate risks while transitioning away from dshellb.
Conclusion
The discovery of malicious code within the dshellb package highlights the importance of maintaining vigilance when using open-source libraries. Users are urged to take immediate action to remove the package and seek alternatives to safeguard their applications.
See every vulnerability recorded for dshellb →
FAQ
The dshellb package is used for executing and manipulating shell commands within JavaScript applications, primarily in Node.js environments.
The malicious code was discovered by security researchers from Amazon Inspector, who identified its presence during routine security assessments.
Using the dshellb package can lead to unauthorized access, data breaches, and exploitation of the host system due to the embedded malicious code.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Immediately remove the dshellb package from your project and replace it with a secure alternative. Monitor your application for any unusual activity.