VDB
KO
MEDIUM 6.4

GHSA-w757-xvvv-vgfw

Genql: inject arbitrary JavaScript or TypeScript via a GraphQL schema

Quick fix

GHSA-w757-xvvv-vgfw — @genql/cli: upgrade to the fixed version with the command below.

npm install @genql/cli@6.3.4

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / @genql/cli
Introduced in: 0 Fixed in: 6.3.4
Fix npm install @genql/cli@6.3.4

References