Malicious Code Injection in @art-ws/package-base: A Critical Security Threat
Summary
MAL-2025-47381: Malicious code in @art-ws/package-base (npm). Affects @art-ws/package-base versions 1.0.5 – 1.0.6. 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 @art-ws/package-base package is a Node.js library designed for various functionalities within JavaScript applications. It is widely used in the npm ecosystem for its ease of integration and utility. However, this package has been compromised, leading to the introduction of malicious code that poses significant security risks to users and their applications.
Vulnerability Detail
The vulnerability stems from a compromise of the @art-ws/package-base package, which was infiltrated by the Shai-Hulud NPM worm. This malicious payload is designed to steal sensitive tokens and credentials from users, subsequently publishing this information to GitHub. Furthermore, it propagates itself to other NPM packages owned by the affected user, amplifying the risk of widespread exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @art-ws/package-base
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 remove the @art-ws/package-base package from their project until a secure version is confirmed. This can be done using the command: npm uninstall @art-ws/package-base. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The @art-ws/package-base package has been identified as having a critical vulnerability due to the presence of malicious code. Users are strongly advised to update to the latest version or remove the package to mitigate risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for @art-ws/package-base →
FAQ
The malicious code is designed to steal sensitive information such as tokens and credentials, and it can propagate itself to other packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a temporary measure, consider uninstalling the package or using alternative libraries until a secure version is available.
The package was compromised by the Shai-Hulud NPM worm, which injected malicious code into the package.
Yes, the vulnerability can lead to unauthorized access to sensitive information and potential exploitation of other packages owned by the user.