CVE-2026-96757 PUBLISHED

orval before 8.29.0 Code Injection via unescaped OpenAPI media-type

Assigner: VulnCheck
Reserved: 23.09.2026 Published: 23.09.2026 Updated: 23.09.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor orval-labs
Product orval
Versions Default: unaffected
  • affected from 6.7.1 to 8.29.0 (excl.)
  • Version 8.29.0 is unaffected

Credits

  • Enrik Mustafa finder

References

Problem Types

  • Improper Control of Generation of Code ('Code Injection') CWE