Description
orval versions 8.14.0 through 8.28.1 contain a code injection vulnerability in the @orval/effect generator that converts OpenAPI schema defaults into template literals. Attackers can inject arbitrary JavaScript expressions via schema defaults containing ${...} syntax, which are executed at module scope when the generated code is built or imported.
Published: 2026-09-23
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

orval 8.14.0 through 8.28.1 contains a code injection flaw in the @orval/effect generator that turns OpenAPI schema defaults containing the ${…} syntax into JavaScript template literals. When the generated code is built or imported, the embedded JavaScript expressions are evaluated at module scope, allowing arbitrary JavaScript execution that can compromise the runtime environment.

Affected Systems

The affected product is orval-labs’ orval package, specifically the @orval/effect component. Versions 8.14.0 through 8.28.1 are impacted. The vulnerability is present in any environment that uses these versions to generate client code from OpenAPI schemas, such as CI pipelines, build servers, or local development setups that compile the library.

Risk and Exploitability

The CVSS score of 9.3 reflects a high severity. EPSS data is not available, but the lack of currently known exploits does not reduce the risk, because an attacker who can supply a malicious OpenAPI file can trigger the vulnerability whenever the code is compiled or imported. The attack likely requires the attacker to provide a crafted schema to the build or runtime environment; it is not an active remote code execution over a network, but it is still a local or remote code execution depending on how the build server is exposed. The vulnerability is not listed in CISA KEV, but the severity and potential impact warrant immediate action.

Generated by OpenCVE AI on September 23, 2026 at 17:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the orval package to a fixed version such as 8.29.0 or later, as indicated in the GHSA advisory.
  • If upgrading is not immediately possible, patch the local orval source by escaping or removing any ${…} syntax in schema defaults before they are processed, following the changes introduced in commit d346d94a660e50a2f8d0f7c17fee2c4c69d8dc23.
  • Validate all OpenAPI schema files to detect and reject any ${…} expressions, ensuring that only literal default values are allowed before generation.

Generated by OpenCVE AI on September 23, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 23 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 23 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
Description orval versions 8.14.0 through 8.28.1 contain a code injection vulnerability in the @orval/effect generator that converts OpenAPI schema defaults into template literals. Attackers can inject arbitrary JavaScript expressions via schema defaults containing ${...} syntax, which are executed at module scope when the generated code is built or imported.
Title orval @orval/effect 8.14.0 through 8.28.1 Code Injection
First Time appeared Orval
Orval orval
Weaknesses CWE-94
CPEs cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*
Vendors & Products Orval
Orval orval
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-23T16:47:31.442Z

Reserved: 2026-09-23T15:58:25.066Z

Link: CVE-2026-96755

cve-icon Vulnrichment

Updated: 2026-09-23T16:47:21.658Z

cve-icon NVD

Status : Deferred

Published: 2026-09-23T17:17:24.607

Modified: 2026-09-23T18:16:08.337

Link: CVE-2026-96755

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T18:15:07Z

Weaknesses
  • CWE-94

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