Orval-labs orval
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 7.18.0
Fixed in 7.18.0
Mitigation
Upgrade orval to 7.18.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 4.6 days after publication; not in CISA KEV. First PoC: langbyyi/CVE-2026-22785 (created 17 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| langbyyi/CVE-2026-22785 | 17 Jan 2026 +4.6 d | 1 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.