What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: orval-labs orval 8.29.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-96757 or the next vulnerability affects your stack