Malicious Code Detected in shopify-css-import: A Critical Security Concern
Summary
MAL-2025-6124: Malicious code in shopify-css-import (npm). Affects shopify-css-import 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 'shopify-css-import' package is an npm library designed to facilitate the importation of CSS files from Shopify into web applications. It is commonly used by developers to streamline the integration of Shopify styles into their projects. However, this package has been identified as having a serious vulnerability that allows it to communicate with a domain associated with malicious activities, posing a risk to users and their applications.
Vulnerability Detail
The vulnerability in the 'shopify-css-import' package originates from its ability to connect to a malicious domain. This can lead to unauthorized data access, potential data breaches, and the execution of harmful scripts within the user's application. The issue was introduced in version 1.0.0 and remains a significant threat as it can compromise the integrity and 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 shopify-css-import
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 remove the 'shopify-css-import' package from your project until a secure version is released. This can be done by executing: npm uninstall shopify-css-import. Alternatively, consider using a different package that provides similar functionality without the associated risks.
Conclusion
The 'shopify-css-import' package has been identified as having a critical vulnerability that allows communication with a malicious domain. It is essential for developers using this package to take immediate action by updating or removing it to safeguard their applications. Utilizing tools like Vulert can further enhance security by providing real-time vulnerability alerts.
See every vulnerability recorded for shopify-css-import →
FAQ
The vulnerability allows the package to communicate with a malicious domain, which can lead to security breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the package from your project or using an alternative package until a secure version is available.
Currently, the vulnerability is present from version 1.0.0. Always check the package repository for updates and patches.
Vulert uses just package-lock.json to monitor and alert for open-source vulnerabilities in your software, providing real-time insights.