Critical Malicious Code Vulnerability in graphql-request-dom Package
Summary
MAL-2026-1444: Malicious code in graphql-request-dom (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
graphql-request-dom is a JavaScript library designed for making GraphQL requests from the browser. It simplifies the process of sending queries and mutations to a GraphQL server, making it a popular choice among developers for building modern web applications. However, this package has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the graphql-request-dom package. This code can fully compromise any computer that has the package installed or running, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it contains embedded malicious code that poses a severe risk to users and their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall graphql-request-dom
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
There are no effective workarounds for this vulnerability other than removing the package entirely. Users should avoid using graphql-request-dom until a safe version is released.
Conclusion
The graphql-request-dom package has been compromised with malicious code, posing a severe threat to users. Immediate action is required to uninstall the package and secure any sensitive information. Regular monitoring of dependencies is essential to prevent future vulnerabilities.
See every vulnerability recorded for graphql-request-dom →
FAQ
Immediately uninstall the package using 'npm uninstall graphql-request-dom' and rotate any sensitive information stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Keeping graphql-request-dom installed poses a significant risk as it may allow attackers to gain unauthorized access to your system and sensitive data.
No, there is currently no patched version available for graphql-request-dom. The only safe action is to remove the package.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and keep your packages updated to the latest secure versions.