CVE-2026-63397 remorses/genql code injection

High 7.1 Published Updated

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.

PackageAffectedFixed in
@genql/cli npmAll versions6.3.4
@genql/cli npmAll versions6.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.

Is CVE-2026-63397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free