Malicious Code Injection in astro-enceladus-postcss-loader-iota Package
Summary
MAL-2025-139602: Malicious code in astro-enceladus-postcss-loader-iota (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 astro-enceladus-postcss-loader-iota package is part of the npm ecosystem, primarily used for processing CSS with PostCSS. It is designed to enhance the development workflow by allowing developers to use modern CSS features while ensuring compatibility with older browsers. However, this package has been compromised, making it susceptible to malicious activities that can affect developers and their projects.
Vulnerability Detail
The vulnerability originates from the package being part of a token reward campaign that floods the npm registry with malicious packages. These packages contain scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially harming developers' reputations and projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall astro-enceladus-postcss-loader-iota
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 astro-enceladus-postcss-loader-iota package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The astro-enceladus-postcss-loader-iota package has been identified as containing malicious code that poses significant risks to developers and their projects. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for astro-enceladus-postcss-loader-iota →
FAQ
The main issue is that it contains malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your package-lock.json file to check for vulnerabilities.
You should uninstall the package immediately and look for alternatives. Use 'npm uninstall astro-enceladus-postcss-loader-iota' to remove it.
Yes, tools like npm audit and Vulert can help you identify and manage vulnerabilities in your project dependencies.
Using this package can lead to reputation damage, project instability, and potential security breaches due to the malicious code it contains.