Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.3

CVE-2026-96757: orval may run malicious code via crafted API specs

CVE-2026-96757 · published 5 days ago
Summary

The orval tool that creates code from OpenAPI definitions can insert unescaped text into the Content-Type header. If an attacker supplies a specially crafted API description, the generated code could execute unwanted JavaScript when it runs. Update orval to the latest version to prevent this risk.

What to do
  • Update orval-labs orval to version 8.29.0 or later.
Affected software
VendorProductAffected versions
orval-labs orval < 8.29.0
Original advisory text
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
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.
Severity
9.3 Critical
CVSS 3.1: 9.8 (NVD)
CVSS 4.0: 9.3 (NVD)
Exploitation
EPSS <1%
Type
CWE-94Code Injection
Timeline
Published23 Sep 2026
Updated29 Sep 2026
First seen23 Sep 2026
Sources
CVE-2026-96757 · MITRE
Track software like this
Free during beta