{"answers":{"affected":"2 open source packages ship an affected version, including @genql/cli.","exploited":"There is no known exploitation of CVE-2026-63397 in the wild and no public exploit code.","fix":"Upgrade @genql/cli to 6.3.4 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2026-63397 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2026-63397 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @genql/cli (npm): affected all versions; fixed in 6.3.4\n- @genql/cli (npm): affected all versions; fixed in 6.3.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-63397/ (Markdown: https://insights.sbomify.com/CVE-2026-63397/index.md)","id":"CVE-2026-63397","markdown":"https://insights.sbomify.com/CVE-2026-63397/index.md","name":"CVE-2026-63397","record":{"aliases":["GHSA-w757-xvvv-vgfw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GraphQL client library","requires_auth":"high_privilege","summary":"An authenticated attacker controlling the GraphQL schema can inject arbitrary JavaScript into generated files, leading to code execution when the client is imported.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cisa-cg","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"remorses/genql code injection","id":"CVE-2026-63397","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Faktory: Unrecovered panic in command handlers allows full-server denial of service","id":"CVE-2026-63403"},"packages":[{"ecosystem":"npm","fixed":["6.3.4"],"introduced":["0"],"last_affected":[],"package":"@genql/cli","purl":null,"source":"GHSA-w757-xvvv-vgfw"},{"ecosystem":"npm","fixed":["6.3.4"],"introduced":["0"],"last_affected":[],"package":"@genql/cli","purl":"pkg:npm/%40genql/cli","source":"GHSA-w757-xvvv-vgfw"}],"prev":{"headline":"Libevent: Heap out-of-bounds write in bufferevent_socket_set_conn_address_ reachable via AF_UNIX accept","id":"CVE-2026-63388"},"products":["genql"],"published":"2026-07-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["remorses"]},"summary":"An authenticated attacker controlling the GraphQL schema can inject arbitrary JavaScript into generated files, leading to code execution when the client is imported.","url":"https://insights.sbomify.com/CVE-2026-63397/"}