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.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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-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 lookupExecution 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 lookupCVE-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- 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
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.
CVSS vector scores
1 official scoreWe 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.
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——Primary CVE scoreVulnerability scoring details
Base CVSS 4.0 score
9.3CriticalVector: 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
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmjCVE reference · x_refsource_CONFIRM
- https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928dCVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
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.
