CVE-2026-96754: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
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.
AI Analysis
Technical Summary
The vulnerability in orval-labs' orval (prior to version 8.29.0) arises from improper control of code generation in the @orval/hono generator. Specifically, it fails to escape apostrophes in OpenAPI path values used in single-quoted route literals. This enables an attacker to inject arbitrary JavaScript code via a crafted OpenAPI document. The injected code executes upon import of the generated TypeScript module, potentially leading to remote code execution or other malicious actions.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the importing environment. This can lead to remote code execution, compromising the security and integrity of applications using the vulnerable orval versions. The CVSS 4.0 score is 9.3 (critical), reflecting the high impact and ease of exploitation without privileges or user interaction.
Mitigation Recommendations
A fix is available in orval version 8.29.0. Users should upgrade to version 8.29.0 or later to remediate this vulnerability. No additional mitigation steps are indicated beyond applying the official fix.
CVE-2026-96754: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
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.
CVSS v4.0
Score 9.3critical
Affected software
orval-labs
orval
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in orval-labs' orval (prior to version 8.29.0) arises from improper control of code generation in the @orval/hono generator. Specifically, it fails to escape apostrophes in OpenAPI path values used in single-quoted route literals. This enables an attacker to inject arbitrary JavaScript code via a crafted OpenAPI document. The injected code executes upon import of the generated TypeScript module, potentially leading to remote code execution or other malicious actions.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the importing environment. This can lead to remote code execution, compromising the security and integrity of applications using the vulnerable orval versions. The CVSS 4.0 score is 9.3 (critical), reflecting the high impact and ease of exploitation without privileges or user interaction.
Mitigation Recommendations
A fix is available in orval version 8.29.0. Users should upgrade to version 8.29.0 or later to remediate this vulnerability. No additional mitigation steps are indicated beyond applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-23T15:58:24.561Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab402dcf7a7c541060ee0d9
Added to database: 09/23/2026, 16:48:28 UTC
Last enriched: 09/23/2026, 17:03:11 UTC
Last updated: 09/24/2026, 01:57:04 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.