CVE-2026-71869
Orval generates type-safe JavaScript clients in TypeScript from …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6
- github.com/orval-labs/orval/pull/3692
- github.com/orval-labs/orval/releases/tag/v8.21.0
- github.com/orval-labs/orval/security/advisories/GHSA-2h9g-j24r-h63g
- nvd.nist.gov/vuln/detail/CVE-2026-71869
- github.com/advisories/GHSA-2h9g-j24r-h63g
- nvd.nist.gov/vuln/detail/CVE-2026-71869
- cve.org/CVERecord?id=CVE-2026-71869
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.