CVE-2026-63397 remorses/genql code injection
An authenticated attacker controlling the GraphQL schema can inject arbitrary JavaScript into generated files, leading to code execution when the client is imported.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-63397?
CVE-2026-63397 is a high-severity code injection vulnerability in remorses genql, published on 16 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-116
Which versions are affected by CVE-2026-63397?
2 open source packages ship an affected version, including @genql/cli.
| Package | Affected | Fixed in |
|---|---|---|
@genql/cli npm | All versions | 6.3.4 |
@genql/cli npm | All versions | 6.3.4 |
How do I fix CVE-2026-63397?
Upgrade @genql/cli to 6.3.4 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-63397 being exploited?
There is no known exploitation of CVE-2026-63397 in the wild and no public exploit code.
Sources
Also known as GHSA-w757-xvvv-vgfw.