CVE-2026-96756: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
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.
AI Analysis
Technical Summary
CVE-2026-96756 is a code injection vulnerability affecting orval versions prior to 8.30.0. The vulnerability exists in the @orval/core factory generator component, which fails to properly escape date default values when using new Date() calls. Attackers can exploit this by injecting malicious expressions through apostrophes in OpenAPI schema default values. Successful exploitation requires that the factoryMethods and useDates options are enabled, resulting in arbitrary code execution with the privileges of the process consuming the orval library.
Potential Impact
An attacker can execute arbitrary code within the context of the consumer process using orval, potentially leading to full compromise of the affected system or application. The vulnerability has a CVSS 4.0 score of 9.2, indicating critical severity with network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fixed version 8.30.0 of orval is available that addresses this code injection vulnerability. Users should upgrade to version 8.30.0 or later to remediate this issue. No other mitigations are indicated.
CVE-2026-96756: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
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.
CVSS v4.0
Score 9.2critical
Affected software
orval-labs
orval
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-96756 is a code injection vulnerability affecting orval versions prior to 8.30.0. The vulnerability exists in the @orval/core factory generator component, which fails to properly escape date default values when using new Date() calls. Attackers can exploit this by injecting malicious expressions through apostrophes in OpenAPI schema default values. Successful exploitation requires that the factoryMethods and useDates options are enabled, resulting in arbitrary code execution with the privileges of the process consuming the orval library.
Potential Impact
An attacker can execute arbitrary code within the context of the consumer process using orval, potentially leading to full compromise of the affected system or application. The vulnerability has a CVSS 4.0 score of 9.2, indicating critical severity with network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fixed version 8.30.0 of orval is available that addresses this code injection vulnerability. Users should upgrade to version 8.30.0 or later to remediate this issue. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-23T15:58:25.631Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab402dcf7a7c541060ee0db
Added to database: 09/23/2026, 16:48:28 UTC
Last enriched: 09/23/2026, 17:03:01 UTC
Last updated: 09/24/2026, 02:01:05 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.