CVE-2026-96756 orval before 8.30.0 Code Injection via Factory Generation

Critical 9.2 Published Updated

Attackers can execute arbitrary code via unescaped date defaults in OpenAPI schemas when specific generator options are enabled.

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-96756?

CVE-2026-96756 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 versions before 8.30.0 contain a code injection vulnerability in the @orval/core factory generator that fails to escape date default values in new Date() calls. Attackers can inject arbitrary expressions through apostrophes in OpenAPI schema defaults to execute code with the privileges of the consumer process when factoryMethods and useDates options are enabled.

Weakness: CWE-94

Which versions are affected by CVE-2026-96756?

How do I fix CVE-2026-96756?

No fix has been published for CVE-2026-96756 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-96756 being exploited?

There is no known exploitation of CVE-2026-96756 in the wild and no public exploit code.

Sources

Also known as GHSA-j4vv-v4c9-8599, GHSA-wx66-36r6-v5g7.

Is CVE-2026-96756 in your software?

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

Check your SBOMs for free