{"id":"GHSA-fg9p-mrxr-hvq7","revision":null,"records":[{"revision":"5ccb4958b50146839f199190101995d5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-62681","aliases":[],"title":"Orval: RCE via OpenAPI path -> unescaped request-URL template literal (backtick breakout)","description":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, react-query, and SWR clients without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request, URL-builder, or query-key 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 and route generation consumers. This issue is fixed in version 8.21.0.","state":0,"publishedAt":"2026-08-19T17:31:02.756+00:00","modifiedAt":"2026-08-21T19:42:09.266+00:00","affected":[{"ecosystem":"Vendor product","name":"orval","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"orval-labs\",\n                    \"product\": \"orval\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 8.21.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/orval-labs/orval/security/advisories/GHSA-fg9p-mrxr-hvq7","https://github.com/orval-labs/orval/pull/3692","https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6","https://github.com/orval-labs/orval/releases/tag/v8.21.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-62681","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-62681","identifiers":["CVE-2026-62681"]},"retained":false,"historicalAffected":[]},{"revision":"20cb3b0ebd5e4128a5c2a5724f75ab6b","observedAt":"2026-11-14T07:10:16+00:00","statement":{"source":"euvd","id":"EUVD-2026-62599","aliases":["CVE-2026-62681","GHSA-fg9p-mrxr-hvq7"],"title":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, re…","description":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, react-query, and SWR clients without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request, URL-builder, or query-key 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 and route generation consumers. This issue is fixed in version 8.21.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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","score":9.3,"severity":null}],"references":["https://github.com/orval-labs/orval/security/advisories/GHSA-fg9p-mrxr-hvq7","https://github.com/orval-labs/orval/pull/3692","https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6","https://github.com/orval-labs/orval/releases/tag/v8.21.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-62599","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 19, 2026, 5:31:02 PM","dateUpdated":"Aug 21, 2026, 7:42:09 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-62599","identifiers":["EUVD-2026-62599","CVE-2026-62681","GHSA-fg9p-mrxr-hvq7"]},"retained":false,"historicalAffected":[]},{"revision":"db417eb6b09c4a5c993c4abce6363be3","observedAt":"2026-10-25T14:19:28.838+00:00","statement":{"source":"nvd","id":"CVE-2026-62681","aliases":[],"title":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, re…","description":"Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, react-query, and SWR clients without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request, URL-builder, or query-key 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 and route generation consumers. This issue is fixed in version 8.21.0.","state":0,"publishedAt":"2026-08-19T18:16:54.383+00:00","modifiedAt":"2026-09-09T21:20:38.86+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6","https://github.com/orval-labs/orval/pull/3692","https://github.com/orval-labs/orval/releases/tag/v8.21.0","https://github.com/orval-labs/orval/security/advisories/GHSA-fg9p-mrxr-hvq7"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-62681","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-94","CWE-116","CWE-1336"],"productCriteria":[],"sourceDates":{"published":"2026-08-19T18:16:54.383","lastModified":"2026-09-09T21:20:38.860"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-62681","identifiers":["CVE-2026-62681"]},"retained":false,"historicalAffected":[]},{"revision":"37d5c06e67e7417aad713084b038d70e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-fg9p-mrxr-hvq7","aliases":["CVE-2026-62681"],"title":"Orval: RCE via OpenAPI path -> unescaped request-URL template literal (backtick breakout)","description":"### Summary\n\nOrval emits the OpenAPI path into the generated request URL as a TEMPLATE LITERAL (`` `/users/...` ``) without escaping the backtick character. A path containing a backtick closes the template literal and injects a concatenation expression that is evaluated when the generated URL/request/key function is called, executing attacker-controlled code. Affects the axios, fetch, react-query, and swr clients. Verified on Orval 8.19.0; survives Orval's default OpenAPI validation.\n\n### Details\n\n```ts\n// generated URL builder (fetch client)\nreturn `/users/` + (globalThis.X = require(\"fs\").writeFileSync(\"/marker\",\"pwned\")) + `/list`;\n```\n\nThe backtick in the path terminates the `` `...` `` literal; `+ (<code>) +` runs as a live expression; a trailing backtick reopens a template literal so the file stays valid. The code runs whenever the generated request function, URL builder, or query-key function is called.\n\nThis is distinct from Orval's four published CVEs: CVE-2026-22785 (`summary` -> MCP server), CVE-2026-23947 / CVE-2026-25141 (`x-enumDescriptions`), and CVE-2026-24132 (`const` -> mock files). This is a different field (the route path) and a different sink (the request-URL template literal), which those advisories and their fixes do not cover.\n\n### PoC\n\n`reproduce.sh` (+ `make_spec.py`) attached: generates a fetch client with default validation, bundles it, calls the generated functions, and shows a marker file written. Verified on 8.19.0.\n\n### Impact\n\nCode execution in any environment that calls a client generated from an attacker-controlled or attacker-influenced OpenAPI description (developer, CI, or the running application). \n\n### Suggested fix\n\nEscape the path before emitting it into the URL template literal (escape backtick and `${`, or build the URL with an encoder that treats the path as data), and validate path characters.","state":0,"publishedAt":"2026-09-03T19:17:32+00:00","modifiedAt":"2026-09-18T05:30:05.8055753+00:00","affected":[{"ecosystem":"npm","name":"orval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"8.21.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/orval-labs/orval/security/advisories/GHSA-fg9p-mrxr-hvq7","https://nvd.nist.gov/vuln/detail/CVE-2026-62681","https://github.com/orval-labs/orval/pull/3692","https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6","https://github.com/orval-labs/orval","https://github.com/orval-labs/orval/releases/tag/v8.21.0"],"sourceUrl":"https://github.com/advisories/GHSA-fg9p-mrxr-hvq7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-fg9p-mrxr-hvq7","identifiers":["GHSA-fg9p-mrxr-hvq7","CVE-2026-62681"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-14T10:57:17.8189526+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-14T10:57:17.8189526+00:00","lastSuccessAt":"2026-11-14T10:57:18.028601+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:18.0286015+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f4305fb3b9417bd97547e9305731a80b9463cd5f49ef853b3cd62960cad53a57-170b1662553ee3a628a7edcd60e9c4640846434bdb7f43295fba3e4bb85afb6a","complete":true,"records":425715,"lastAttemptAt":"2026-11-14T10:57:17.3248872+00:00","lastSuccessAt":"2026-11-14T10:57:17.273575+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:17.3248872+00:00","snapshotPublishedAt":"2026-11-14T10:27:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-21c7ffb0cd8d4e41935630d950039183","complete":true,"records":13821,"lastAttemptAt":"2026-11-14T10:58:29.960654+00:00","lastSuccessAt":"2026-11-14T09:58:00.482+00:00","error":null,"lastVerifiedAt":"2026-11-14T09:58:00.482+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13874,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-14T10:57:17.8189526+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-14T10:57:17.8189526+00:00","lastSuccessAt":"2026-11-14T10:57:18.0293537+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:18.0293539+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-1b63371cb47c47c5be86901813e9f81a","complete":false,"records":13821,"lastAttemptAt":"2026-11-14T10:58:29.1314442+00:00","lastSuccessAt":"2026-11-14T10:58:29.127+00:00","error":"170 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-14T10:58:29.127+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13304,"expectedIdentifiers":13874,"failedIdentifiers":170},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0b57fec07d57d893c006f1cfeb0af7ae73375ea99dba0cb68b1da97c5ec74185","complete":true,"records":9955,"lastAttemptAt":"2026-11-14T10:57:17.6710433+00:00","lastSuccessAt":"2026-11-13T23:59:01.475919+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:17.6710433+00:00","snapshotPublishedAt":"2026-11-13T23:17:54+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-14T10:57:17.391885+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:17.391885+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-012aff9b2fb349d53e2c4bace6ca57956b6f5f9d82c1dc9fdc1c9b3c738f8977","complete":true,"records":3148,"lastAttemptAt":"2026-11-14T10:57:17.7769585+00:00","lastSuccessAt":"2026-11-14T04:57:03.8279646+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:17.7769585+00:00","snapshotPublishedAt":"2026-11-14T03:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-fdee02376e78ad97a6afd9c64b7a511338faf1c7adbbe54e4431f98a9f790e0d","complete":true,"records":232471,"lastAttemptAt":"2026-11-14T10:57:17.5629251+00:00","lastSuccessAt":"2026-11-14T08:58:41.6192286+00:00","error":null,"lastVerifiedAt":"2026-11-14T10:57:17.5629251+00:00","snapshotPublishedAt":"2026-11-14T08:33:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}