Malicious Code Detected in version-sass-loader-webpack-quantum-computing Package
Summary
MAL-2025-190145: Malicious code in version-sass-loader-webpack-quantum-computing (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 version-sass-loader-webpack-quantum-computing package is part of the npm ecosystem, typically used for integrating Sass with Webpack. This package is designed to facilitate the use of Sass stylesheets in JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's package publishing system, leading to significant security concerns.
Vulnerability Detail
The vulnerability originates from the package being part of the tea.xyz token reward campaign, which floods npm with malicious packages. These packages contain scripts that automatically modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, potentially leading to further exploitation and security risks for users who inadvertently install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall version-sass-loader-webpack-quantum-computing
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 avoid using the version-sass-loader-webpack-quantum-computing package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The version-sass-loader-webpack-quantum-computing package has been identified as malicious, posing significant risks to users and the npm ecosystem. It is essential to take immediate action to remove the package and update to a secure version. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for version-sass-loader-webpack-quantum-computing →
FAQ
The malicious code is designed to modify package.json files, remove private flags, and publish derivative packages with random names, which can lead to reputation inflation and registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By simply uploading your package-lock.json file, you can check for vulnerabilities without needing to install any software.
If you have installed the version-sass-loader-webpack-quantum-computing package, it is crucial to remove it immediately and update your dependencies to ensure your application is secure.
While specific exploits have not been detailed, the behavior of the malicious code poses a risk of reputation damage and potential security breaches due to the pollution of the npm registry.
To prevent similar vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.