CVE-2026-96756
Deferred Deferred - Pending Action

Code Injection in Orval OpenAPI Factory Generator

Vulnerability report for CVE-2026-96756, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-23

Last updated on: 2026-09-23

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-23
Last Modified
2026-09-23
Generated
2026-09-24
AI Q&A
2026-09-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
orval_labs orval to 8.30.0 (exc)
orval_labs core to 8.30.0 (exc)
orval orval to 8.30.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-96756 is a code injection vulnerability in the orval library versions before 8.30.0. It occurs when the @orval/core package processes OpenAPI schema defaults for dates. The vulnerability allows attackers to inject arbitrary JavaScript expressions through apostrophes in date defaults, which are then executed when factory methods are called. This happens because the library fails to escape these values properly before inserting them into new Date() calls.

Detection Guidance

To detect this vulnerability, check if your system uses orval versions before 8.30.0. Run 'npm list orval' or 'yarn list orval' to verify the installed version. If the version is below 8.30.0, the system is vulnerable. Additionally, inspect OpenAPI documents for factoryMethods and useDates configurations enabled.

Impact Analysis

If you use affected versions of orval with factoryMethods and useDates enabled, an attacker could craft malicious OpenAPI documents to execute arbitrary code on your system. The injected code runs with the same privileges as the process invoking the generated factory. This could lead to data theft, system compromise, or further network infiltration depending on the application's context.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially causing data breaches that violate GDPR's integrity and confidentiality requirements or HIPAA's safeguards for protected health information. Organizations using affected versions may face compliance violations if the vulnerability leads to unauthorized data access or modification.

Mitigation Strategies

Immediately update orval to version 8.30.0 or later using 'npm update orval' or 'yarn upgrade orval'. Review and sanitize any OpenAPI documents used in your project to ensure no malicious date defaults are present. Disable factoryMethods and useDates if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-96756. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart