CVE-2026-96757 orval before 8.29.0 Code Injection via unescaped OpenAPI media-type

Critical 9.3 Published Updated

Attackers can inject JavaScript into generated code via crafted OpenAPI media-type keys, leading to code execution when the generated code runs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-96757?

CVE-2026-96757 is a critical code injection vulnerability in orval-labs orval, published on 23 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-96757?

How do I fix CVE-2026-96757?

No fix has been published for CVE-2026-96757 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-96757 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-96757 exists.

Sources

Also known as GHSA-2hg7-crf6-4xp2.

Is CVE-2026-96757 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free