# CVE-2026-71869: Orval: Import-time RCE via array-items default -\> zod module-level template literal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.3
- **CVSS:** 9.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-94, CWE-116, CWE-1336
- **Aliases:** GHSA-2h9g-j24r-h63g
- **Published:** 2026-08-19T17:36:06.800Z
- **Modified:** 2026-09-18T05:30:05.838Z

## Who should check

- Projects that depend on npm package orval (\< 8.21.0)
- Anyone running orval-labs orval \< 8.21.0

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

## Affected and fixed versions

- npm `orval`: affected \< 8.21.0; fixed 8.21.0 (osv)
- orval-labs orval: \< 8.21.0 (cvelist)

## Mitigation

- Upgrade orval to 8.21.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-71869. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-71869.md
Affected: orval < 8.21.0
Fixed in: 8.21.0

Steps:
1. Search this machine and project for orval (npm), orval-labs orval: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-71869 being exploited?

There is no confirmed exploitation: CVE-2026-71869 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-71869?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-71869?

orval \< 8.21.0.

### Is there a fix for CVE-2026-71869?

Yes. Fixed in 8.21.0. Upgrade orval to 8.21.0 or later.

### How do I check if I'm affected by CVE-2026-71869?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/orval-labs/orval/security/advisories/GHSA-2h9g-j24r-h63g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-71869>
- patch: <https://github.com/orval-labs/orval/pull/3692>
- patch: <https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6>
- other: <https://github.com/orval-labs/orval/releases/tag/v8.21.0>
- other: <https://github.com/orval-labs/orval>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-71869>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2h9g-j24r-h63g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-71869> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-71869>
