{"id":"CVE-2026-71864","published":"2026-08-19T17:34:55Z","modified":"2026-08-25T02:21:34Z","title":"Orval: Import-time RCE via header parameter name -> computed-property-key injection in the zod client","vendor":"orval-labs","product":"orval","tier":"tail","description":{"text":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a double quote in a header parameter name is emitted into the generated request-validation zod.object({...}) schema without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts and header request-validation generation. This issue is fixed in version 8.21.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00653,"percentile":0.52224,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/orval-labs/orval/security/advisories/GHSA-6437-gxhq-pqv8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/orval-labs/orval/pull/3692","tags":["x_refsource_MISC"]},{"url":"https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6","tags":["x_refsource_MISC"]},{"url":"https://github.com/orval-labs/orval/releases/tag/v8.21.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.44},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"orval-labs","affectedVersions":[{"vendor":"orval-labs","product":"orval","versions":["< 8.21.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-25T02:20:17.436822Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"orval","vulnerableRanges":["<8.21.0"],"patched":["8.21.0"],"from":["GHSA-6437-gxhq-pqv8"],"provenance":"source"}],"summary":{"text":"Orval, the OpenAPI/Swagger-to-TypeScript client generator from orval-labs, versions before 8.21.0 fail to escape double quotes in header parameter names when emitting the request-validation zod.object schema in its zod client code generation (packages/zod/src/index.ts). An attacker who can supply a crafted header parameter name in the API specification being processed can inject JavaScript that executes when the generated zod schema module is imported, requiring no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:11Z"},"euvd":{"id":"EUVD-2026-62602","exploited":false,"provenance":"source"}}