Malicious Code Vulnerability in schematics-cli: A Critical Security Concern
Summary
MAL-2025-6653: Malicious code in schematics-cli (npm). Affects schematics-cli versions 9.1.1. 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
schematics-cli is a command-line interface for Angular developers, enabling them to create and manage Angular projects with ease. It provides tools for generating components, services, and other project elements, streamlining the development process. However, recent findings have revealed that version 9.1.1 of schematics-cli contains malicious code that poses significant security risks to users.
Vulnerability Detail
The vulnerability identified as MAL-2025-6653 originates from a malicious code injection in the schematics-cli package. This code can potentially compromise user systems, leading to unauthorized access, data breaches, or system manipulation. The malicious behavior is embedded within the package, making it difficult for users to detect without thorough scrutiny. The implications of this vulnerability are severe, as it can affect any project utilizing this package, exposing sensitive information and system integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall schematics-cli
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, users can avoid using version 9.1.1 of schematics-cli and revert to a previous stable version that does not contain the vulnerability. You can do this by running: npm install schematics-cli@<previous_version>, replacing <previous_version> with the last known safe version.
Conclusion
The discovery of malicious code in the schematics-cli package version 9.1.1 poses a significant threat to users. It is crucial to update to the latest version to mitigate risks associated with this vulnerability. Utilizing tools like Vulert can help monitor and alert users about such vulnerabilities in real-time.
See every vulnerability recorded for schematics-cli →
FAQ
schematics-cli is a command-line tool for Angular developers that helps in generating and managing Angular project components.
You can check if your project is affected by using Vulert, which monitors vulnerabilities in open-source packages. Visit Vulert Scanner to analyze your package-lock.json file.
If immediate updates are not possible, consider using a previous stable version of schematics-cli as a temporary workaround until you can apply the necessary updates.
Using the vulnerable version can lead to unauthorized access, data breaches, and potential manipulation of your system, posing serious security risks.
The vulnerability was identified by ReversingLabs, a security research firm specializing in malware analysis and threat detection.