Skip to main content

Orval CVE-2026-22785

CRITICAL
Command Injection (CWE-77)
2026-01-12 security-advisories@github.com GHSA-mwr6-3gp8-9jmj
9.8
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Generated
Mar 12, 2026 - 21:54 vuln.today
PoC Detected
Feb 26, 2026 - 20:00 vuln.today
Public exploit code
Patch released
Feb 26, 2026 - 20:00 nvd
Patch available
CVE Published
Jan 12, 2026 - 19:16 nvd
CRITICAL 9.8

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on @orval/mcp (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 7.18.0.

DescriptionGitHub Advisory

orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Prior to 7.18.0, the MCP server generation logic relies on string manipulation that incorporates the summary field from the OpenAPI specification without proper validation or escaping. This allows an attacker to "break out" of the string literal and inject arbitrary code. This vulnerability is fixed in 7.18.0.

AnalysisAI

orval (TypeScript API client generator) before 7.18.0 has code injection via OpenAPI specification summary fields in MCP server generation. Malicious API specs can inject arbitrary code into generated TypeScript. PoC available, patch available.

Technical ContextAI

When generating MCP server code, the summary field from the OpenAPI specification is incorporated into string literals using simple string concatenation (CWE-77). An attacker who controls the OpenAPI spec can break out of the string and inject arbitrary TypeScript/JavaScript code.

RemediationAI

Update to orval 7.18.0 or later. Review generated code for anomalies.

More in Orval

View all
CVE-2026-24132 CRITICAL
9.8 Jan 23

Orval TypeScript code generator versions 7.19+ have a command injection vulnerability allowing RCE through malicious Ope

CVE-2026-23947 CRITICAL
9.8 Jan 20

Orval, a TypeScript API client generator, has a command injection vulnerability that allows code execution through malic

CVE-2026-25141 CRITICAL
9.8 Jan 30

Code injection in Orval TypeScript API client generator versions 7.19.0 to before 7.22.0. Generated client code may be v

CVE-2026-62682 CRITICAL
9.3 Aug 19

Arbitrary code execution in Orval before 8.21.0 arises when the code generator emits an unescaped backtick (or ${...}) f

CVE-2026-72717 CRITICAL
9.3 Aug 19

Arbitrary code execution in Orval (orval-labs/orval) before 8.21.0 allows an attacker who controls an OpenAPI v3 or Swag

CVE-2026-71867 CRITICAL
9.3 Aug 19

Code injection in Orval, a TypeScript/JavaScript API client generator, allows a malicious OpenAPI v3 or Swagger v2 speci

CVE-2026-71868 CRITICAL
9.3 Aug 19

Code execution in Orval before 8.21.0 occurs when its zod schema generator processes an attacker-controlled OpenAPI v3 o

CVE-2026-71865 CRITICAL
9.3 Aug 19

Code injection in Orval before 8.21.0 lets an attacker-controlled OpenAPI v3 / Swagger v2 specification achieve arbitrar

CVE-2026-71869 CRITICAL
9.3 Aug 19

Arbitrary code execution in Orval (OpenAPI/Swagger TypeScript client generator) before 8.21.0 lets an attacker who contr

CVE-2026-71864 CRITICAL
9.3 Aug 19

Code injection in Orval (orval-labs/orval) before 8.21.0 allows an attacker who controls an OpenAPI v3 or Swagger v2 spe

CVE-2026-71871 CRITICAL
9.3 Aug 19

Code injection in Orval, a TypeScript client generator for OpenAPI v3 and Swagger v2 specs, allows arbitrary JavaScript

CVE-2026-72716 CRITICAL
9.3 Aug 19

Code injection in Orval before 8.21.0 lets an attacker-controlled OpenAPI v3 or Swagger v2 specification execute arbitra

Share

CVE-2026-22785 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy