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.
Published: 2026-07-16
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An authenticated attacker who can supply a GraphQL schema to the Genql CLI can inject arbitrary JavaScript or TypeScript. The injected code is written into the generated schema.ts file and executed when the client is bundled and imported, giving the attacker execution rights in the context of the built application. The flaw is a classic example of improper input sanitization, identified as CWE‑116. The resulting impact is the ability to run arbitrary code, potentially compromising confidentiality, integrity, and availability of systems that use the generated client.

Affected Systems

The issue affects the Genql tool from remorses, specifically all releases before version 6.3.4. Any deployment that uses the genql CLI to generate schema files and subsequently bundles those files into a JavaScript or TypeScript application is at risk. The vulnerability is limited to environments where the attacker can influence the GraphQL schema input, such as developer or build systems with authenticated access.

Risk and Exploitability

The CVE awards a CVSS score of 7.1, indicating high risk. The EPSS score is less than 1%, suggesting a low likelihood of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack requires the attacker to be authenticated within the environment that generates the schema, supply a crafted schema, then build and deploy the resulting client. Once the client is bundled and imported, the injected JavaScript or TypeScript runs, enabling the attacker to execute arbitrary code.

Generated by OpenCVE AI on July 31, 2026 at 01:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Genql to version 6.3.4 or later, which removes the ability to inject code into the generated schema.
  • Verify that no unauthorized or modified GraphQL schemas have been applied to the genql CLI and remove any that contain malicious code.
  • If an immediate upgrade is not possible, restrict the permissions of the build environment so that only trusted users can supply schema files, and consider signing the generated client bundle to prevent execution of tampered code.

Generated by OpenCVE AI on July 31, 2026 at 01:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Remorses
Remorses genql
Vendors & Products Remorses
Remorses genql

Tue, 21 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
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.
Title remorses/genql code injection
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: cisa-cg

Published:

Updated: 2026-07-21T17:08:22.419Z

Reserved: 2026-07-16T18:33:57.457Z

Link: CVE-2026-63397

cve-icon Vulnrichment

Updated: 2026-07-21T17:08:17.604Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:30:05Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output