# CVE-2026-72716: Orval: Import-time RCE via query-parameter 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:33:01.745Z
- Modified: 2026-09-09T21:20:38.860Z
- Also known as: GHSA-p4cg-3328-rvfg
- Weaknesses: 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 query parameter 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-p4cg-3328-rvfg> (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-72716> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-72716](https://www.cve.org/CVERecord?id=CVE-2026-72716), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-p4cg-3328-rvfg](https://github.com/advisories/GHSA-p4cg-3328-rvfg), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-72716](https://nvd.nist.gov/vuln/detail/CVE-2026-72716), Public domain, modified 2026-09-09

---

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