CVE-2026-96754

orval @orval/hono before 8.29.0 Code Injection via OpenAPI Path

Published Sep 23, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 29, 2026, 2:00 AM
Reserved
Sep 23, 2026, 3:58 PM
Status
Deferred
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 29, 2026, 2:16 AM