CVE-2026-96757 Details
Description
orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.
A code injection vulnerability exists in Orval versions prior to 8.29.0. The issue arises because the application fails to properly escape media-type keys in OpenAPI specifications when these keys are incorporated into single-quoted Content-Type string literals in the generated code. This flaw allows attackers to inject JavaScript, which is executed when the generated fetch operations or mock resolvers are called. The vulnerability is present in the Orval code generation process, specifically within the OpenAPI requestBody content and response media type keys.
Users can upgrade to Orval version 8.29.0 or later, where this vulnerability has been patched. The fix involves escaping media-type keys before they are inserted into generated code, preventing the injection of malicious JavaScript.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 23, 2026CISA-ADP
Assessed Sep 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| orval-labs/orval | >= 6.7.1, < 8.29.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 23, 2026 | CVE Modified | CISA-ADP |
| Sep 23, 2026 | New CVE Received | [email protected] |
Volerion