Description
orval versions before 8.29.0 contain a code injection vulnerability in the @orval/hono generator that fails to escape OpenAPI path values in single-quoted route literals. Attackers can craft an OpenAPI document with an apostrophe in a static path segment to inject arbitrary JavaScript code that executes when the generated TypeScript module is imported.
Published: 2026-09-23
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Code Injection leading to arbitrary JavaScript execution
Action: Patch
AI Analysis

Impact

The vulnerability arises from a failure to escape OpenAPI path values inside single-quoted route literals generated by the @orval/hono generator. An attacker can embed an apostrophe in a static path segment of a malicious OpenAPI document to inject arbitrary JavaScript code that will execute when the resulting TypeScript module is imported. This results in the ability to run unintended code during module load, potentially allowing full control over the environment in which the module runs.

Affected Systems

All releases of orval from orval-labs prior to version 8.29.0 are affected. The product is the orval tool used to generate TypeScript clients and routers from OpenAPI specifications.

Risk and Exploitability

The CVSS score of 9.3 indicates a high severity flaw that permits code execution. Although the EPSS score is not available, the lack of known exploitation in the KEV catalog suggests no widespread exploitation yet, but the risk remains high due to the nature of the vulnerability. The likely attack vector involves an attacker providing or substituting a malicious OpenAPI document used during code generation. Once the generated module is imported in any application, the injected code will execute.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the orval package to version 8.29.0 or later, which properly escapes path values and removes the injection vector.
  • Re‑generate any TypeScript modules that were produced with older orval versions after applying the upgrade, to ensure no injected code remains.
  • Audit your build and CI/CD pipelines for the presence of orval, ensuring that only the patched version is used and that no legacy dependencies persist.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Description orval versions before 8.29.0 contain a code injection vulnerability in the @orval/hono generator that fails to escape OpenAPI path values in single-quoted route literals. Attackers can craft an OpenAPI document with an apostrophe in a static path segment to inject arbitrary JavaScript code that executes when the generated TypeScript module is imported.
Title orval @orval/hono before 8.29.0 Code Injection via OpenAPI Path
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:23:51.012Z

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

Link: CVE-2026-96754

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-09-23T17:17:24.437

Link: CVE-2026-96754

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T17:30:06Z

Weaknesses
  • CWE-94

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