Malicious Code Injection in ariel-spawn-commitlint-config-angular-cressida Package
Summary
MAL-2025-139596: Malicious code in ariel-spawn-commitlint-config-angular-cressida (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 ariel-spawn-commitlint-config-angular-cressida package is part of the npm ecosystem and is designed to facilitate commit linting in Angular projects. It aims to enforce consistent commit message formats, which is crucial for maintaining a clean project history. 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 a malicious code injection within the ariel-spawn-commitlint-config-angular-cressida package. This package is linked to a broader campaign that floods the npm registry with derivative packages containing autopublish scripts. These scripts are designed to modify the package.json file, removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants can lead to pollution of the npm registry, potentially harming developer reputations and project integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ariel-spawn-commitlint-config-angular-cressida
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 an alternative package for commit linting that has not been flagged for malicious activity. Ensure to review the package's reputation and community feedback before integrating it into your project.
Conclusion
The ariel-spawn-commitlint-config-angular-cressida package has been identified as containing malicious code that can compromise the integrity of projects using it. Developers are urged to remove this package and consider alternatives while monitoring for updates and patches.
See every vulnerability recorded for ariel-spawn-commitlint-config-angular-cressida →
FAQ
It is an npm package designed to enforce commit message conventions in Angular projects.
The package was compromised as part of a malicious campaign that aimed to inflate developer reputation scores through the creation of numerous derivative packages.
The risks include potential pollution of the npm registry, loss of developer reputation, and the possibility of introducing further vulnerabilities into your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup at Vulert Scanner.
If immediate removal is not possible, consider using an alternative package for commit linting and monitor your project for any unusual behavior.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.