CVE-2026-22785: orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification
CVE-2026-22785 is a critical-severity flaw (CVSS 9.8) affecting orval. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.8% (top 44%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2026-01-12 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: langbyyi/CVE-2026-22785 (1 stars)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-22785?
orval: upgrade to 7.18.0. Exact commands for each OS are on this page.
Is CVE-2026-22785 being exploited?
CVE-2026-22785 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-22785 affect?
CVE-2026-22785 affects orval. Severity is critical (CVSS 9.8). 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 spe
How urgent is CVE-2026-22785?
Priority 61/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-24132 CRITICAL 9.8 UPGRADE Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification