{"id":"CVE-2026-62682","published":"2026-08-19T17:40:17Z","modified":"2026-08-19T18:19:27Z","title":"Orval: RCE via servers[].url -> unescaped request-URL template literal (with getBaseUrlFromSpecification)","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, an unescaped backtick in servers[0].url is emitted into request URL template literals generated when output.baseUrl.getBaseUrlFromSpecification is enabled without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request or URL-builder function is called, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/route.ts function getFullRoute. 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.45977,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"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-88f2-fpv8-89q2","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":15.7,"factors":[{"name":"EPSS percentile","points":9.2},{"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-19T18:18:29.754822Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"orval","vulnerableRanges":["<8.21.0"],"patched":["8.21.0"],"from":["GHSA-88f2-fpv8-89q2"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-62658","exploited":false,"provenance":"source"}}