Malicious Code Injection in aquarius-sass-loader-morgan-unuk: A Threat to npm Packages
Summary
MAL-2025-139548: Malicious code in aquarius-sass-loader-morgan-unuk (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 package aquarius-sass-loader-morgan-unuk is part of the npm ecosystem, primarily used for integrating Sass with Morgan for logging HTTP requests in Node.js applications. This package, like many others, is susceptible to vulnerabilities that can compromise the integrity of applications relying on it. The recent discovery of malicious code within this package raises significant concerns about the security of npm packages and the potential for widespread exploitation.
Vulnerability Detail
The vulnerability in aquarius-sass-loader-morgan-unuk originates from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically modify package.json files, removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for developers to find legitimate packages. The ramifications include potential exposure to further malicious code and compromised application security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aquarius-sass-loader-morgan-unuk
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 aquarius-sass-loader-morgan-unuk package from your project until a secure version is released. To uninstall the package, use the following command: npm uninstall aquarius-sass-loader-morgan-unuk.
Conclusion
The discovery of malicious code in the aquarius-sass-loader-morgan-unuk package highlights the importance of vigilance in managing npm packages. Developers should take immediate action to update or remove vulnerable packages and utilize tools like Vulert for ongoing monitoring to safeguard their applications.
See every vulnerability recorded for aquarius-sass-loader-morgan-unuk →
FAQ
The vulnerability involves malicious code that modifies package.json files and republishes variants to the npm registry, potentially compromising application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
You should update the package to the latest version or remove it from your project until a secure version is available.
Using compromised packages can lead to unauthorized access, data breaches, and the injection of further malicious code into your applications.
Yes, tools like Vulert can automate the monitoring process by analyzing your package-lock.json file for vulnerabilities in real-time.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.