Skip to main content
VulnerabilityPublished

CVE-2026-22785: orval · Command Injection

Affects orvalSource CVE Database V5

0

Not known to be exploited · CVSS 9.3 Critical : upgrade to 7.18.0 as a priority.

Data as of 26 Oct 2026, 09:16 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 7.18.0
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade orval and orval-labs/orval to 7.18.0.

Affected software

ProductAffectedFixed in
orval-labsorvalAffected
  • <7.18.0
Fixed in
  • 7.18.0
npmorval-labs/orvalpkg:npm/orval-labs/orvalOther threatsAffected
  • <7.18.0
Fixed in
  • 7.18.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediately upgrade orval to version 7.18.0 or later, where the vulnerability is fixed. 2. Implement strict validation and sanitization of all OpenAPI specification inputs, especially the 'summary' field, before processing or incorporation into code generation. 3. Restrict the sources of OpenAPI specifications to trusted and verified origins to prevent injection of malicious specifications. 4. Isolate build and code generation environments to minimize impact if exploitation occurs, using containerization or dedicated build servers with limited network access. 5. Monitor development and CI/CD pipelines for unusual activity or unexpected code changes that could indicate exploitation attempts. 6. Educate development teams about the risks of injecting untrusted data into code generation tools and enforce secure coding practices. 7. Consider implementing runtime application self-protection (RASP) or endpoint detection to detect anomalous behavior in build environments. 8. Review and audit existing generated clients and server code for signs of injected malicious code if older orval versions were used.

Description

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.

References

Community reviews

Loading reviews…