{"id":"GHSA-2h9g-j24r-h63g","revision":null,"records":[{"revision":"93592c3248a64abbb91c96244c924823","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-71869","aliases":[],"title":"Orval: Import-time RCE via array-items default -> zod module-level template literal","description":"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 an array item 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.","state":0,"publishedAt":"2026-08-19T17:36:06.8+00:00","modifiedAt":"2026-08-25T03:32:48.556+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-2h9g-j24r-h63g","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-71869","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-71869","identifiers":["CVE-2026-71869"]},"retained":false,"historicalAffected":[]},{"revision":"6d7aa5f6702a45898e9cde84dc853df8","observedAt":"2026-11-13T17:03:02.629+00:00","statement":{"source":"euvd","id":"EUVD-2026-62603","aliases":["CVE-2026-71869","GHSA-2h9g-j24r-h63g"],"title":"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 an array item default is emitted into a module-level template literal emitted by z…","description":"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 an array item 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.","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-2h9g-j24r-h63g","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-62603","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 19, 2026, 5:36:06 PM","dateUpdated":"Aug 25, 2026, 3:32:48 AM"},"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-62603","identifiers":["EUVD-2026-62603","CVE-2026-71869","GHSA-2h9g-j24r-h63g"]},"retained":false,"historicalAffected":[]},{"revision":"7a28a9e6dce74e20888d5af2966e83d6","observedAt":"2026-10-25T15:19:03.401+00:00","statement":{"source":"nvd","id":"CVE-2026-71869","aliases":[],"title":"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 an array item default is emitted into a module-level template literal emitted by z…","description":"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 an array item 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.","state":0,"publishedAt":"2026-08-19T18:17:24.547+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-2h9g-j24r-h63g"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-71869","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:17:24.547","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-71869","identifiers":["CVE-2026-71869"]},"retained":false,"historicalAffected":[]},{"revision":"357015e6ae2f47d597eedf235ef35dc5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-2h9g-j24r-h63g","aliases":["CVE-2026-71869"],"title":"Orval: Import-time RCE via array-items default -> zod module-level template literal","description":"### Summary\n\nOrval's zod schema generation emits the **array-items** `default` value as a module-level template literal (`export const …Default = `<default>`;`) without escaping `${` or the backtick. A default of the form `v${<code>}w` injects a live JavaScript expression evaluated when the generated zod schema module is imported, executing attacker-controlled code at import — no request or function call needed. Verified on Orval 8.19.0; survives default OpenAPI validation.\n\n### Details\n\n```ts\nexport const …Default = `v${globalThis.ORVPWN()}w`;   // ${...} = arbitrary JS expression, runs at import\n```\n\nMalicious input: an array property (string items) with a `default` of `v${<attacker JS>}w`. `${...}` permits any JS expression.\n\nNote: this is one of several `default`-bearing positions that reach the same unescaped zod template-literal sink; a single fix (escape `default` values) closes all of them, and a CNA may choose to consolidate the related reports.\n\n### PoC\n\n`reproduce.sh` (+ `make_spec.py`) attached: generates the zod schema with default validation, bundles it, imports it, and shows a marker written at import. Verified on 8.19.0.\n\n### Impact\n\nCode execution at import in any application that imports a zod schema module generated from an attacker-controlled or attacker-influenced OpenAPI description.\n\n### Suggested fix\n\nEmit `default` values via a proper string-literal encoder (JSON.stringify, or escape backtick and `${` if a template literal must be used); never interpolate a spec value into a template literal. Apply to every `default` position. [maintainer-report.txt](https://github.com/user-attachments/files/29399151/maintainer-report.txt) [make_spec.py](https://github.com/user-attachments/files/29399152/make_spec.py)[reproduce.sh](https://github.com/user-attachments/files/29399153/reproduce.sh)","state":0,"publishedAt":"2026-09-03T18:38:20+00:00","modifiedAt":"2026-09-18T05:30:05.8387826+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-2h9g-j24r-h63g","https://nvd.nist.gov/vuln/detail/CVE-2026-71869","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-2h9g-j24r-h63g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2h9g-j24r-h63g","identifiers":["GHSA-2h9g-j24r-h63g","CVE-2026-71869"]},"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-14T20:21:24.4104575+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-14T20:21:24.4104575+00:00","lastSuccessAt":"2026-11-14T20:21:24.7298951+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:24.7298971+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-110e9fbba0d16ee4a6342cef9c20741a9bd8f275c7b4d002e4cfc7e321d443a3","complete":true,"records":425754,"lastAttemptAt":"2026-11-14T20:21:23.6797275+00:00","lastSuccessAt":"2026-11-14T20:21:23.6460104+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:23.6797275+00:00","snapshotPublishedAt":"2026-11-14T20:19:03+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-d632856c212c465f872d23c1c5c7ba76","complete":true,"records":13821,"lastAttemptAt":"2026-11-14T20:22:20.5683961+00:00","lastSuccessAt":"2026-11-14T20:22:20.563+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:22:20.563+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-14T20:21:24.4104575+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-14T20:21:24.4104575+00:00","lastSuccessAt":"2026-11-14T20:21:29.1327033+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:29.1327048+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-93a714ca229f4004b9ad41c1aa5d8964","complete":false,"records":13821,"lastAttemptAt":"2026-11-14T20:22:17.4030038+00:00","lastSuccessAt":"2026-11-14T20:22:17.392+00:00","error":"144 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-14T20:22:17.392+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13730,"expectedIdentifiers":13874,"failedIdentifiers":144},{"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-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-14T20:21:24.3042314+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:24.3042314+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+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-14T20:21:23.7274509+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:23.7274509+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-14T20:21:24.3263754+00:00","lastSuccessAt":"2026-11-14T04:57:03.8279646+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:24.3263754+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-0fa6043874468fa16fdc0311477d3c3a35589e224cd5d69155ea6bef24c165d5","complete":true,"records":232471,"lastAttemptAt":"2026-11-14T20:21:24.1991483+00:00","lastSuccessAt":"2026-11-14T14:59:00.1873373+00:00","error":null,"lastVerifiedAt":"2026-11-14T20:21:24.1991483+00:00","snapshotPublishedAt":"2026-11-14T14:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}