CVE-2026-71866: Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client

Published Aug 19, 2026
·
Updated

Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. From version 8.19.0 until 8.21.0, a double quote in a schema property name is emitted into the generated zod.object({...}) schema 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 and zod object-key generation. This issue is fixed in version 8.21.0.

Affected Software

1 affected component
orval>8.19.0<8.21.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade orval to a version that resolves this vulnerability.

    Fixed in 8.21.0

Event History

Aug 19, 2026
CVE Published
via MITRE·05:27 PM
Data Sourced
via MITRE·05:27 PM
DescriptionWeakness

Frequently Asked Questions

1

Which environments are at risk?

Any developer workstation, CI job, test environment, or application environment that imports a generated Zod schema module can execute the injected JavaScript. Exposure requires generating the client from an attacker-controlled OpenAPI or Swagger specification.

2

What does an attacker need to control?

The attacker needs to supply or modify an API specification with a schema property name containing a double quote. The payload is evaluated when the generated Zod schema module is imported.

3

How can I determine whether my workflow is affected?

Check whether Orval versions from 8.19.0 up to, but not including, 8.21.0 were used to generate Zod clients. Workflows that generate or import Zod schemas from untrusted or externally supplied specifications are the relevant exposure path.

4

What should be done if upgrading cannot happen immediately?

Do not generate or import Zod schema clients from untrusted API specifications. Upgrade Orval to version 8.21.0 when possible, then regenerate affected clients.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203