# CVE-2026-72717: Orval: Import-time RCE via schema default -> zod module-level template literal

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T17:39:23.125Z
- Modified: 2026-09-18T05:30:05.771Z
- Also known as: GHSA-w727-8j6c-2rj4
- Weaknesses: CWE-94, CWE-116, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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 a schema 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.

(As written by CVE List.)

## Affected

- orval-labs orval: < 8.21.0
- orval (npm): before 8.21.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/orval-labs/orval/security/advisories/GHSA-w727-8j6c-2rj4> (exploit, web)
- <https://github.com/orval-labs/orval/pull/3692> (web)
- <https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6> (web)
- <https://github.com/orval-labs/orval/releases/tag/v8.21.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72717> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-72717](https://www.cve.org/CVERecord?id=CVE-2026-72717), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-w727-8j6c-2rj4](https://github.com/advisories/GHSA-w727-8j6c-2rj4), CC-BY-4.0, modified 2026-09-18
- NVD: [CVE-2026-72717](https://nvd.nist.gov/vuln/detail/CVE-2026-72717), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-72717 · Whole record: https://cve.day/CVE-2026-72717.json · Rebuilt by cve.day 2026-11-25T22:59:33.998Z
