Skip to content
CriticalVulnerability

CVE-2026-22785: orval code injection through summary field in MCP server generation

Identifier
CVE-2026-22785
Published
Record updated
View JSON
Affected
  • @orval/mcp < 7.18.0
Fixed in
7.18.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2026-22785 affects orval, which generates type-safe JavaScript clients (TypeScript) from OpenAPI v3 and Swagger v2 specifications. Before 7.18.0, the MCP server generation logic built code by string manipulation and inserted the OpenAPI summary field without validation or escaping. An attacker can use this to break out of the string literal and inject arbitrary code.

Mitigation

Fixed in 7.18.0.