CVE-2026-96756 PUBLISHED

orval before 8.30.0 Code Injection via Factory Generation

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

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.

Metrics

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

Product Status

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

Credits

  • Enrik Mustafa finder

References

Problem Types

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