CVE-2026-96754 Details
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.
A code injection vulnerability has been identified in Orval versions prior to 8.29.0, specifically within the @orval/hono generator. This vulnerability arises from the generator's failure to properly escape OpenAPI path values in static route literals. Attackers can exploit this by crafting an OpenAPI document that includes an apostrophe in a static path segment, allowing them to inject arbitrary JavaScript code. This injected code executes when the generated TypeScript module is imported.
Users can upgrade to Orval version 8.29.0 or later, where this vulnerability has been patched.
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, 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 | < 8.29.0 (semver) |
CPE
Remediation
| |
| orval-labs/orval/hono | <= 8.28.1 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 23, 2026 | New CVE Received | [email protected] |
Volerion