Malicious Code Detected in cosmicray-commitlint-rollup-spawn Package
Summary
MAL-2025-17612: Malicious code in cosmicray-commitlint-rollup-spawn (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 cosmicray-commitlint-rollup-spawn package is an npm module designed to facilitate the integration of commit linting and rollup spawning in JavaScript projects. It aims to streamline the development workflow by ensuring code quality and managing build processes effectively. However, this package has been found to contain malicious code, posing significant risks to users who integrate it into their projects.
Vulnerability Detail
The vulnerability in the cosmicray-commitlint-rollup-spawn package arises from the inclusion of malicious code that can compromise the security of applications using this package. This malicious code can potentially lead to unauthorized access, data breaches, or other harmful actions within the user's environment. The issue originates from the package's initial release, making all versions vulnerable, and highlights the importance of scrutinizing third-party dependencies for security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cosmicray-commitlint-rollup-spawn
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 packages that provide similar functionality without the associated risks. Review your project's dependencies and replace cosmicray-commitlint-rollup-spawn with a trusted package that fulfills the same role.
Conclusion
The cosmicray-commitlint-rollup-spawn package has been found to contain malicious code, posing serious security risks to users. It is crucial to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your dependencies.
See every vulnerability recorded for cosmicray-commitlint-rollup-spawn →
FAQ
It is an npm module that integrates commit linting and rollup spawning to enhance JavaScript development workflows.
The malicious code was identified by security researchers and reported through Amazon Inspector.
Using this package can lead to unauthorized access, data breaches, and other security vulnerabilities in your application.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Remove the package from your project and consider using alternative packages that do not have known vulnerabilities.