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. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Craft malicious OpenAPI specification with code injection in summary field
Exploit
Upload or reference spec in orval MCP server generation
Execution
String concatenation incorporates unescaped summary
Impact
Arbitrary code executes during client generation

Vulnerability AssessmentAI

Exploitation orval versions prior to 7.18.0 with MCP server generation enabled processing an attacker-controlled OpenAPI v3 or Swagger v2 specification containing a malicious summary field. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment CVSS 9.8 (Critical). … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker publishes a malicious OpenAPI spec to a public API registry. When a developer uses orval to generate an MCP server from this spec, the generated code contains a backdoor that exfiltrates data or provides remote access.
Remediation Update to orval 7.18.0 or later. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours: Identify all affected systems and apply vendor patches immediately. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

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