CVE-2026-96754
Received Received - Intake

Code Injection in Orval @orval/hono Generator

Vulnerability report for CVE-2026-96754, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-23

Last updated on: 2026-09-23

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-23
Last Modified
2026-09-23
Generated
2026-09-23
AI Q&A
2026-09-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
orval orval to 8.29.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects orval versions before 8.29.0, specifically in the @orval/hono generator. It involves improper escaping of single quotes in OpenAPI path values, allowing attackers to inject arbitrary JavaScript code into single-quoted route literals. When the generated TypeScript module is imported, the injected code executes, causing potential security risks.

Detection Guidance

To detect this vulnerability, check if your system uses orval versions before 8.29.0. Inspect OpenAPI documents for static path segments containing apostrophes or special characters. Review generated TypeScript files for syntax errors or unexpected code injection in route literals.

Impact Analysis

The impact includes compilation failures of generated TypeScript code and potential runtime code injection if tools like esbuild or babel are used. Attackers could craft OpenAPI documents with apostrophes in static path segments to break string literals or inject malicious code that executes upon module import.

Mitigation Strategies

Upgrade orval to version 8.29.0 or later. Review and sanitize OpenAPI documents to remove apostrophes or special characters in path segments. Regenerate TypeScript modules after updating to ensure proper escaping of path values.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-96754. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart