PT-2026-78554 · Orval · Orval

CVE-2026-71871

·

Published

2026-08-19

·

Updated

2026-09-03

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions Orval versions prior to 8.21.0
Description Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. A flaw exists where a ${...} expression or backtick in a header parameter default is emitted into a module-level template literal during zod schema generation without safe encoding. This allows attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, leading to code execution in the developer, CI, test, or application environment. The issue is located in the formatDefaultValue() function within packages/zod/src/index.ts.
Recommendations Update to version 8.21.0.

Exploit

Fix

RCE

Improper Encoding or Escaping of Output

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-71871
GHSA-8J6P-R8JG-MXQH

Affected Products

Orval