Critical Malicious Code Vulnerability in commitlint-plugin-rules-an Package
Summary
MAL-2024-10955: Malicious code in commitlint-plugin-rules-an (npm). Affects commitlint-plugin-rules-an versions 0.0.0 – 7.2.3. 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 commitlint-plugin-rules-an package is an npm module designed to provide custom rules for commitlint, a tool that helps enforce commit message conventions. This package is typically used in software development workflows to maintain consistency in commit messages, which can improve project management and collaboration. However, it has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the commitlint-plugin-rules-an package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The origin of this vulnerability is linked to a malicious actor who introduced harmful code into the package, which has been identified by the GitHub Security Advisory (GHSA). The ramifications of this vulnerability are severe, as it can lead to data breaches and loss of control over affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall commitlint-plugin-rules-an
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
Currently, the best workaround is to uninstall the affected package. You can do this by running the following command in your terminal: npm uninstall commitlint-plugin-rules-an. This will help mitigate the risk until a secure version is released.
Conclusion
The commitlint-plugin-rules-an package has been compromised with malicious code, posing serious security risks to any system that has it installed. Immediate action is required to uninstall the package and secure any sensitive information. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.
See every vulnerability recorded for commitlint-plugin-rules-an →
FAQ
You should immediately uninstall the package and rotate any sensitive information that may have been exposed.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
As of now, there is no patched version available. The recommendation is to uninstall the package until a secure version is released.
Leaving this package installed poses significant risks, including unauthorized access to sensitive data and potential control over your system by malicious actors.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time insights without requiring code access.