Vulnerabilities in pkg:npm/@genql/cli
PACKAGECVE-2026-63397 is a HIGH (CVSS 6.4) inject arbitrary javascript or typescript vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Genql libraries in the npm ecosystem. The issue involves inject arbitrary javascript or typescript via a graphql schema. Remediation is available by upgrading affected packages to version 6.3.4.
pkg:npm/@genql/cli
Vulnerability advisories affecting package pkg:npm/@genql/cli. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w757-xvvv-vgfw | CVE-2026-63397 | HIGH | Genql: inject arbitrary JavaScript or TypeScript via a GraphQL schema |
CVE-2026-63397 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-63397
To remediate this vulnerability, upgrade all affected Genql dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @genql/cli@6.3.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @genql/cli
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-63397, inspect your project dependencies using npm:
npm ls @genql/cli
Analyze the terminal output to locate any version of Genql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.4), your application is affected.
Note: The npm ls @genql/cli command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Genql, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-63397 Affected Genql Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@genql/cli
|
npm |
< 6.3.4
|
6.3.4
|
References
Frequently Asked Questions
What is CVE-2026-63397?
Which Genql versions are affected?
What version fixes CVE-2026-63397?
Is @genql/cli affected?
What is the CVSS score of CVE-2026-63397?
What CWE is associated with CVE-2026-63397?
How can I check npm dependencies for CVE-2026-63397?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w757-xvvv-vgfw",
"modified" : "2026-08-13T18:29:07Z",
"published" : "2026-07-16T21:30:38Z",
"aliases" : [ "CVE-2026-63397" ],
"summary" : "Genql: inject arbitrary JavaScript or TypeScript via a GraphQL schema",
"details" : "remorses/genql before version 6.3.4 allows an authenticated attacker with control of the GraphQL schema that is passed to genql to inject arbitrary JavaScript or TypeScript. The malicious code is injected into the generated schema.ts file and executes when the genql client is bundled and imported.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@genql/cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63397"
}, {
"type" : "WEB",
"url" : "https://github.com/remorses/genql/issues/197"
}, {
"type" : "WEB",
"url" : "https://github.com/remorses/genql/commit/2dbc80ffb767ee58e6b27d9d81d58fa1ee8bea28"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/remorses/genql"
}, {
"type" : "WEB",
"url" : "https://github.com/remorses/genql/releases/tag/%40genql%2Fcli%406.3.4"
}, {
"type" : "WEB",
"url" : "https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-197-01.json"
}, {
"type" : "WEB",
"url" : "https://www.cve.org/CVERecord?id=CVE-2026-63397"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-13T18:29:06Z",
"nvd_published_at" : "2026-07-16T20:16:47Z"
}
}