Malicious Code Detected in dshellx Package - Security Alert
Summary
MAL-2025-18938: Malicious code in dshellx (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 dshellx package is an npm library designed for executing shell commands in a JavaScript environment. It is commonly used in various applications for its ability to interact with the system shell. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the dshellx package originates from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access to sensitive data, execute arbitrary commands, or facilitate other malicious activities. The presence of such vulnerabilities can lead to severe ramifications, including data breaches and system compromises.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dshellx
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, consider removing the dshellx package from your project until a secure version is available. You can do this by executing: npm uninstall dshellx.
Conclusion
The dshellx package has been identified to contain malicious code, posing significant security risks to applications that utilize it. It is essential to update to the latest patched version or remove the package until a fix is available. Utilize tools like Vulert to monitor your application for vulnerabilities effectively.
See every vulnerability recorded for dshellx →
FAQ
The dshellx package is used for executing shell commands within a JavaScript environment, allowing developers to interact with the system shell.
You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to test your application without any signup.
The malicious code can lead to unauthorized access, data breaches, and potential system compromises, posing serious security threats to your application.
Yes, a patched version of the dshellx package is available. It is recommended to update to this version to mitigate the vulnerability.
If immediate updates are not possible, consider removing the dshellx package from your project as a temporary measure until a secure version can be implemented.