{
  "id": "CVE-2026-71868",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-71868",
  "published_at": "2026-08-19T17:37:34.092Z",
  "title": "Orval: Import-time RCE via enum-typed default -\u003e zod module-level template literal",
  "vendor": "orval-labs",
  "product": "orval",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 enum 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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 9.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "orval-labs",
        "product": "orval",
        "ranges": [
          "\u003c 8.21.0"
        ],
        "fixed_in": [
          "8.21.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade orval to 8.21.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/orval-labs/orval/security/advisories/GHSA-3575-w9fc-c2j6"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/orval-labs/orval/pull/3692"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/orval-labs/orval/releases/tag/v8.21.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
