PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-71868 orval-labs CVE debrief

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-19T18:17:24.413Z and has not been modified since then. The CVE-2026-71868 issue is a critical vulnerability in Orval, a tool for generating type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to version 8.21.0, a ${...} expression or backtick in an enum 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 in packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0. To verify, defenders should review the generated zod schema modules, check for suspicious JavaScript execution, and validate the input to the formatDefaultValue function. Additionally, defenders should ensure that the Orval version is upgraded to 8.21.0 or later to address the code execution vulnerability. The vulnerability has a CVSS score of 9.3 and is considered critical. The CVE record has not been modified since its publication on 2026-08-19T18:17:24.413Z.

Vendor
orval-labs
Product
orval
CVSS
CRITICAL 9.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-19
Original CVE updated
2026-08-21
Advisory published
2026-08-19
Advisory updated
2026-08-21

Who should care

Developers and users of Orval, especially those using versions prior to 8.21.0, should be aware of this critical vulnerability and take immediate action to upgrade to the latest version. Additionally, operators, platform administrators, vulnerability management teams, and security teams should review the generated zod schema modules and validate the input to the formatDefaultValue function to prevent code execution.

Technical summary

The CVE-2026-71868 issue is a critical vulnerability in Orval, a tool for generating type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to version 8.21.0, a ${...} expression or backtick in an enum 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 in packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0.

Defensive priority

Developers and users of Orval should prioritize upgrading to version 8.21.0 or later to address the code execution vulnerability.

Recommended defensive actions

  • Upgrade to Orval version 8.21.0 or later
  • Review and validate the generated zod schema modules
  • Implement compensating controls to detect and prevent code execution
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE-2026-71868 issue permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution. The affected code is in packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0. To verify, defenders should review the generated zod schema modules, check for suspicious JavaScript execution, and validate the input to the formatDefaultValue function. Additionally, defenders should ensure that the Orval version is upgraded to 8.21.0 or later to address the code execution vulnerability.

Official resources

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-19T18:17:24.413Z and has not been modified since then.