Skip to main content

CVE-2026-96754: Improper Control of Generation of Code ('Code Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-96754cvecve-2026-96754
Published: 09/23/2026 (09/23/2026, 16:23:51 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

orval-labs

orval

Affected versions
>=0 <8.29.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/23/2026, 17:03:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses