Skip to content

CVE-2026-96757 orval before 8.29.0 Code Injection via unescaped OpenAPI media-type

CriticalCVSS 9.3 EPSS 0.82%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

Description

orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm orval >= 6.7.1, < 8.29.0 8.29.0 Fixed

Affected products

ProductAffected versionsFixed in
npm orval >= 6.7.1, < 8.29.0 8.29.0

References