Skip to content
CVE PROGRAM SOURCE RECORD9.3 Critical

CVE-2026-96757

orval before 8.29.0 Code Injection via unescaped OpenAPI media-type

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

orval-labs orval

Default version status: unaffected

  • 6.7.1 to < 8.29.0affected
  • 8.29.0unaffected
pkg:npm/orval

References