PT-2026-78555 · Orval · Orval

CVE-2026-72716

·

Published

2026-08-19

·

Updated

2026-09-02

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 query 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

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

Weakness Enumeration

Related Identifiers

CVE-2026-72716
GHSA-P4CG-3328-RVFG

Affected Products

Orval