Malicious Code Detected in cli-plugin-graphql: A Critical Security Alert
Summary
MAL-2025-17112: Malicious code in cli-plugin-graphql (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 cli-plugin-graphql package is a tool designed for integrating GraphQL functionality into command-line interfaces. It allows developers to easily implement GraphQL queries and mutations, enhancing the capabilities of their applications. However, this package has recently been identified as containing malicious code, posing significant security risks to users who have integrated it into their projects.
Vulnerability Detail
The vulnerability in cli-plugin-graphql arises from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cli-plugin-graphql
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 remove the cli-plugin-graphql package from their project until a secure version is released. This can be done using the command: 'npm uninstall cli-plugin-graphql'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the cli-plugin-graphql package highlights the importance of maintaining secure coding practices and regularly updating dependencies. Users are urged to take immediate action to protect their applications from potential threats.
See every vulnerability recorded for cli-plugin-graphql →
FAQ
cli-plugin-graphql is a package that enables developers to integrate GraphQL capabilities into their command-line applications.
The malicious code can potentially allow unauthorized access and manipulation of data within applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application by visiting the Vulert playground at Vulert Scanner.
Yes, you can temporarily uninstall the cli-plugin-graphql package until a secure version is available.
Regularly check the package repository and consider using tools like Vulert to receive real-time alerts for vulnerabilities in your dependencies.