Description
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.22.0, Orval resolves remote and local external $ref values without an allowlist or confinement to the input directory. Processing an attacker-controlled OpenAPI description can cause requests from the developer or CI host to attacker-selected or internal HTTP services, read absolute or out-of-tree local files, and inline untrusted remote schemas into generated clients. The affected code is packages/orval/src/import-specs.ts external reference loading. This issue is fixed in version 8.22.0.
Published: 2026-08-19
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Orval is a TypeScript client generator that processes OpenAPI specifications, and before version 8.22.0 it resolves external $ref values without restrictions. A crafted specification can cause the build host to fetch arbitrary remote resources or read absolute local files. This exposes internal network services and configuration files, yielding confidential data and potential unauthorized access. The issue involves insecure file access (CWE-22), server‑side request forgery (CWE-918), and the use of untrusted input (CWE-829).

Affected Systems

The vulnerability applies to all releases of orval‑labs/orval prior to v8.22.0. Any developer workstation or CI pipeline that runs orval against an attacker‑controlled specification is at risk.

Risk and Exploitability

The CVSS score of 7.1 reflects a high severity exposure. EPSS information is not available and the vulnerability is not in the CISA KEV catalogue. Based on the description, it is inferred that the attack vector is supply‑chain based: the attacker must provide a malicious OpenAPI file that is parsed by orval, which is common when specifications are stored in public repositories or received from external contributors. Exploitation requires no elevated host privileges; it occurs during normal execution of the generator and therefore any environment where orval has network and file‑system access is potentially compromised.

Generated by OpenCVE AI on August 20, 2026 at 13:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade orval to version 8.22.0 or later.
  • After upgrading, audit and remove external $ref entries from all OpenAPI specifications, ensuring they come from trusted sources.
  • Configure CI environments to restrict outbound network traffic or run orval in a sandboxed context to mitigate SSRF exposure.

Generated by OpenCVE AI on August 20, 2026 at 13:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cxq5-97v7-87j8 Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
History

Wed, 19 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Orval-labs
Orval-labs orval
Vendors & Products Orval-labs
Orval-labs orval

Wed, 19 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.22.0, Orval resolves remote and local external $ref values without an allowlist or confinement to the input directory. Processing an attacker-controlled OpenAPI description can cause requests from the developer or CI host to attacker-selected or internal HTTP services, read absolute or out-of-tree local files, and inline untrusted remote schemas into generated clients. The affected code is packages/orval/src/import-specs.ts external reference loading. This issue is fixed in version 8.22.0.
Title Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
Weaknesses CWE-22
CWE-829
CWE-918
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N'}


Subscriptions

Orval-labs Orval
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:06:47.948Z

Reserved: 2026-07-14T20:22:04.395Z

Link: CVE-2026-62680

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T18:16:54.230

Modified: 2026-08-19T18:16:54.230

Link: CVE-2026-62680

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T13:30:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-918

    Server-Side Request Forgery (SSRF)