Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-96757 EUVD-2026-85407GHSA-2hg7-crf6-4xp2

orval before 8.29.0 Code Injection via unescaped OpenAPI media-type

Published Sep 23, 2026 · Updated Sep 23, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
orval-labs orval 6.7.1 – < 8.29.0 8.29.0

References