Malicious Code Detected in workspace-loader (npm) - Vulnerability MAL-2025-5845
Summary
MAL-2025-5845: Malicious code in workspace-loader (npm). Affects workspace-loader versions 1.0.0. 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 'workspace-loader' package is an npm module designed to facilitate the loading of workspace configurations in JavaScript applications. It allows developers to manage multiple packages within a single repository efficiently. However, the version 1.0.0 of this package has been flagged for containing malicious code that compromises its integrity and security.
Vulnerability Detail
The vulnerability in 'workspace-loader' arises from its ability to communicate with a domain linked to malicious activities. This communication can lead to unauthorized command execution, potentially allowing attackers to manipulate the host system or exfiltrate sensitive data. The malicious behavior is associated with executing commands that can compromise the security of applications utilizing this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall workspace-loader
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 using alternative packages that provide similar functionality without the associated risks. Ensure to review the security status of any alternative packages before implementation.
Conclusion
The 'workspace-loader' package has been identified as malicious due to its ability to execute harmful commands and communicate with malicious domains. Users are advised to uninstall the package to protect their applications from potential threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for workspace-loader →
FAQ
The malicious behavior includes communication with a domain linked to harmful activities and executing unauthorized commands.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available for the workspace-loader package. It is recommended to uninstall the package.
If immediate removal is not possible, consider using alternative packages and ensure to monitor your application for any suspicious activities.
Vulert uses the package-lock.json file to monitor and alert in real-time for open-source vulnerabilities, providing insights without requiring code access.