{"id":"CVE-2026-72716","published":"2026-08-19T17:33:01Z","modified":"2026-08-19T17:48:14Z","title":"Orval: Import-time RCE via query-parameter default -> zod module-level template literal","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 ${...} expression or backtick in a query parameter default is emitted into a module-level template literal emitted by zod schema generation 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 function formatDefaultValue. 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.52223,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/orval-labs/orval/security/advisories/GHSA-p4cg-3328-rvfg","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":"yes","technicalImpact":"total","timestamp":"2026-08-19T17:48:07.984853Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"orval","vulnerableRanges":["<8.21.0"],"patched":["8.21.0"],"from":["GHSA-p4cg-3328-rvfg"],"provenance":"source"}],"summary":{"text":"Orval, the TypeScript client generator for OpenAPI v3 and Swagger v2 specifications, contains a flaw in the zod schema generation code (the formatDefaultValue function in packages/zod/src/index.ts) where query-parameter default values are written into a module-level template literal without safe encoding. An attacker who can supply a specification with a crafted default value, such as one containing a ${...} expression or backtick, can get arbitrary JavaScript evaluated when the generated zod schema module is imported, which requires no privileges or user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:12Z"},"euvd":{"id":"EUVD-2026-62600","exploited":false,"provenance":"source"}}