Malicious Code Detected in cosmicmind-materialjs: A Critical Security Alert
Summary
MAL-2025-17609: Malicious code in cosmicmind-materialjs (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 cosmicmind-materialjs package is a JavaScript library designed for building user interfaces with Material Design principles. It provides a set of components and styles that help developers create visually appealing applications. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the cosmicmind-materialjs package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in all versions of the package, making it imperative for users to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cosmicmind-materialjs
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, consider using alternative libraries that provide similar functionality without the associated risks. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file to identify potential security issues in real-time.
Conclusion
The discovery of malicious code in the cosmicmind-materialjs package highlights the importance of regularly monitoring and updating dependencies in software projects. Users are urged to take immediate action to safeguard their applications from potential threats.
See every vulnerability recorded for cosmicmind-materialjs →
FAQ
cosmicmind-materialjs is a JavaScript library for building user interfaces based on Material Design principles.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Currently, there is no patched version available. It is recommended to remove the package until a secure version is released.
Remove the cosmicmind-materialjs package immediately and consider using alternative libraries until a secure version is available.