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

Published Sep 23, 2026
·
Updated

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.

Affected Software

1 affected component
npm/orval<8.30.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade orval to a version that resolves this vulnerability.

    Fixed in 8.30.0

Event History

Sep 23, 2026
CVE Published
via MITRE·04:23 PM
Data Sourced
via MITRE·04:23 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Consumers using orval versions before 8.30.0 are exposed when both the factoryMethods and useDates options are enabled and the generator processes OpenAPI schema default values.

2

What does an attacker need to exploit the vulnerability?

An attacker needs to control, or cause the consumer to process, an OpenAPI schema containing a date default value with an apostrophe. The injected expression executes during generation with the privileges of the consumer process.

3

Are default orval configurations affected?

The issue requires both factoryMethods and useDates to be enabled. The provided information does not establish whether those options are enabled by default.

4

How can teams identify potentially affected generation workflows?

Review orval usage for versions before 8.30.0 and configurations enabling both factoryMethods and useDates. Also identify workflows that generate code from OpenAPI specifications supplied by external or less-trusted sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203