Read the docs
TI-2026-18303 Aliases CVE-2026-22785GHSA-mwr6-3gp8-9jmj

orval MCP client is vulnerable to a code injection attack.

Priority MEDIUM 49CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00778 56th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed orval (orval-labs): 7.18.0@orval/mcp (npm): 7.18.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
orval-labsorvalbefore 7.18.07.18.0Patch availableCNA
—@orval/mcp (npm)before 7.18.07.18.0Patch availableGHSA-mwr6-3gp8-9jmj
  • orval Vendororval-labs Affected before 7.18.0 Fixed in 7.18.0 Patch available CNA
  • @orval/mcp (npm) Vendor— Affected before 7.18.0 Fixed in 7.18.0 Patch available GHSA-mwr6-3gp8-9jmj

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*before 7.18.0Vulnerableorval-labs
  • cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:* Versions before 7.18.0 Vulnerable ·orval-labs

Remediation

  • Fix · CNA orval (orval-labs) Fixed in 7.18.0
  • Fix · GHSA-mwr6-3gp8-9jmj @orval/mcp (npm) Fixed in 7.18.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-22785
  2. 2026-10-03 Alias added: GHSA-mwr6-3gp8-9jmj

References

  • TI-2026-19289 Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation CVSS 4.0CRITICAL 9.3
  • TI-2026-20303 Orval has a code injection via unsanitized x-enum-descriptions uing JS comments CVSS 4.0CRITICAL 9.3
  • TI-2026-19450 Orval Mock Generation Code Injection via const CVSS 4.0HIGH 7.7

Sources