LiveActive security incident?Get immediate response
CVE Record

CVE-2026-22785: orval MCP client is vulnerable to a code injection attack.

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.

CriticalCVSS 9.3Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2026-22785 affects orval, a tool that generates TypeScript clients from OpenAPI or Swagger definitions. Before version 7.18.0, malicious content in an API specification’s summary field could be inserted into generated MCP server code. Organizations using orval in development or CI/CD should treat untrusted API specs as a serious supply-chain risk.

Executive priority

Prioritize remediation for teams using orval in automated builds or accepting third-party API specifications. The business risk is malicious code entering generated software through a trusted development tool.

Technical view

The vulnerable MCP server generation logic used string manipulation without properly validating or escaping the OpenAPI summary field. An attacker controlling a consumed specification could break out of a string literal and inject arbitrary code into generated output. The issue is listed as CWE-77 and fixed in orval 7.18.0.

Likely exposure

Exposure is most likely in developer workstations, build systems, or CI pipelines using orval versions earlier than 7.18.0 to generate MCP server code from OpenAPI v3 or Swagger v2 specifications, especially externally supplied or partner-provided specs.

Exploitation context

The CVE record states network attack complexity is low and no privileges or user interaction are required in the CVSS model. However, the provided sources do not state active exploitation, and the CVE is not marked in KEV.

Researcher notes

The public record identifies affected versions as orval before 7.18.0 and points to a fixing commit. Evidence is sufficient for exposure assessment, but the provided sources do not include proof of exploitation or detailed operational indicators.

Mitigation direction

  • Upgrade orval to version 7.18.0 or later.
  • Avoid generating MCP server code from untrusted specifications until upgraded.
  • Review provenance of OpenAPI and Swagger files used in builds.
  • Check the GitHub advisory for any additional vendor guidance.

Validation and detection

  • Inventory projects and CI jobs using orval.
  • Confirm installed orval versions are 7.18.0 or later.
  • Identify workflows generating MCP server output.
  • Review whether consumed API specs come from external or untrusted sources.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-77: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-22785 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.3 (4.0)
Known Exploited
No
Published

Vector: 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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.3CVSS 4.0CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

9.3Critical
CVSS 4.0 vector shape for CVE-2026-22785Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
orval-labsorval< 7.18.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-77 · source CWE mapping

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.