Skip to main content

Orval EUVDEUVD-2026-62659

| CVE-2026-62680 HIGH
Path Traversal (CWE-22)
2026-08-19 GitHub_M GHSA-cxq5-97v7-87j8
7.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious OpenAPI spec
  2. Delivery
    Supplies spec to developer or CI pipeline
  3. Exploit
    Developer runs Orval against spec
  4. Execution
    Orval resolves external $refs without allowlist
  5. Persist
    SSRF or arbitrary file read triggered
  6. Impact
    Secrets exfiltrated or malicious schemas injected into generated client

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a victim - a developer or automated CI/CD job - runs Orval against an OpenAPI or Swagger specification containing attacker-controlled external $ref values. This prerequisite is met when processing third-party API descriptions downloaded from the internet, consuming specs from a shared or compromised repository, or ingesting specs supplied by an external API vendor. No authentication to the victim system is required by the attacker; CVSS PR:N confirms the attacker supplies only a crafted document. Exploitation is limited by: UI:R (a human or automated process must actively invoke Orval against the malicious spec); the attacker must control or influence the spec file being processed; and SSRF reach is bounded by the network posture of the build host. Default configurations of Orval prior to 8.22.0 are unconditionally vulnerable to any spec containing external $refs - no special feature flag or non-default configuration is required to trigger the vulnerable code path.

Impact

CVSS 7.1 with AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N reflects a realistic risk picture: the attack is network-deliverable with no credentials needed, but UI:R correctly captures that a developer or automated CI pipeline must actively invoke Orval against the malicious spec. The high confidentiality impact is well-justified given the compound attack surface - arbitrary local file read and SSRF against cloud metadata services or internal APIs reachable from the build host often coexist in CI environments with rich access to secrets. No EPSS data was provided in the intelligence feed, and the vulnerability is not listed in CISA KEV, leaving exploitation urgency inferred from vulnerability class rather than confirmed telemetry. The supply chain dimension - where inlined untrusted schemas persist in committed generated code and propagate to consumers - meaningfully extends the impact beyond the immediate host; even a mid-sized municipal IT team in swidnica running automated API client generation against third-party specs should treat this as a credible supply chain risk requiring prompt upgrade. No public exploit code has been identified at time of analysis, and real-world risk is tempered by the niche deployment footprint of the tool and the prerequisite that an attacker must influence the spec file being processed.

Exploit ScenarioDerived

An attacker publishes a malicious OpenAPI specification - for example, as a public third-party API description or embedded in an open-source project - containing $ref values such as http://169.254.169.254/latest/meta-data/iam/security-credentials/ or a relative path traversal like ../../../.aws/credentials. When a developer or CI pipeline runs Orval against this spec, Orval fetches and inlines all referenced content without restriction, exfiltrating cloud credentials or internal service responses while simultaneously embedding the attacker's schema definitions into the committed generated TypeScript client. No public POC has been identified, but the attack requires only a crafted YAML or JSON file and standard Orval CLI invocation against it.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

External $ref resolution in Orval prior to version 8.22.0 allows server-side request forgery and path traversal against the developer or CI host that processes an attacker-controlled OpenAPI or Swagger specification. Any OpenAPI description containing crafted $ref values - pointing to internal HTTP services, cloud metadata endpoints such as the AWS IMDSv1 endpoint, or absolute local file paths - is resolved unconditionally by Orval's import-specs.ts loader with no allowlist or directory confinement. Beyond data exfiltration, untrusted remote schemas are inlined directly into the generated TypeScript client, potentially introducing malicious type definitions into downstream codebases. No active exploitation is confirmed (not in CISA KEV), but the network-delivery path with no authentication requirement makes this a meaningful supply chain risk for teams that process third-party OpenAPI descriptions.

RemediationAI

Upgrade to orval version 8.22.0 or later; the vendor-released patch is confirmed at https://github.com/orval-labs/orval/releases/tag/v8.22.0 with the underlying fix in PR #3723. Version 8.22.0 changes the default behavior to block all external $ref resolution - teams that legitimately require external references must explicitly list trusted document targets in parserOptions.externalRefs.allow. Using the wildcard allow: ['*'] restores the old behavior but emits a warning and should be treated as a temporary measure only for internally audited specs. As a compensating control where immediate upgrade is not feasible, restrict Orval execution to OpenAPI specs sourced exclusively from internally controlled, audited repositories, and run Orval in a network-isolated container with no access to cloud metadata endpoints (e.g., blocking 169.254.169.254) and no host secret mounts - this limits SSRF and file-read blast radius but does not prevent malicious schema injection into generated output files.

Affected VersionsENISA

orval < 8.22.0

Affected Packages

npm orval fix: 8.22.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Orval (cpe:2.3:a:orval-labs:orval:*:*:*:*:*:*:*:*) is a TypeScript codegen tool that parses OpenAPI v3 and Swagger v2 specifications and emits strongly-typed HTTP client code. OpenAPI and Swagger schemas support $ref pointers that reference external documents via local file paths or remote URLs. CWE-22 (Path Traversal) captures the root cause: prior to 8.22.0, the external reference loader in packages/orval/src/import-specs.ts performed no confinement to the input directory and maintained no allowlist of permitted targets, so any $ref value - including absolute paths like /etc/passwd or URLs pointing to 169.254.169.254 - was resolved and its content incorporated into the code generation pipeline. The fix in v8.22.0 (PR #3723, commit 23786c056) introduces an externalRefs.allow configuration defaulting to an empty list (block all external refs by default), with an explicit opt-in wildcard ['*'] that restores pre-fix behavior with a warning. The vulnerability spans both SSRF and path traversal primitives simultaneously, making it a compound information-disclosure issue.

Know when Orval gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 7.1 HIGH

Network-delivered via crafted spec with no attacker privileges; UI:R since victim must invoke Orval; high confidentiality from SSRF and arbitrary file read.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 19:18 EUVD
CVE Published
Aug 19, 2026 - 17:42 cve.org
HIGH 7.1

DescriptionCVE.org

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.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Orval prior to version 8.22.0 contains a supply chain vulnerability allowing attackers to craft malicious OpenAPI specifications that trigger server-side request forgery and file access on developer and CI systems. Development teams that automatically process third-party API documentation face direct risk of data exfiltration and code injection into generated TypeScript clients, compromising both application security and supply chain integrity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict OpenAPI specification sources to internal repositories or pre-approved external vendors only; disable outbound network access from build environments to internal services and cloud metadata endpoints; implement mandatory manual review of all external specifications prior to processing; run Orval exclusively in isolated network environments with no access to sensitive resources; and establish comprehensive logging of all CI infrastructure for detection of unexpected external connections or data exfiltration attempts.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Low
niche TypeScript codegen tool for OpenAPI spec consumers
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Orval

View all
CVE-2026-22785 CRITICAL POC
9.8 Jan 12

orval (TypeScript API client generator) before 7.18.0 has code injection via OpenAPI specification summary fields in MCP

CVE-2026-72717 CRITICAL POC
9.3 Aug 19

Arbitrary code execution in Orval (orval-labs/orval) before 8.21.0 allows an attacker who controls an OpenAPI v3 or Swag

CVE-2026-72716 CRITICAL POC
9.3 Aug 19

Code injection in Orval before 8.21.0 lets an attacker-controlled OpenAPI v3 or Swagger v2 specification execute arbitra

CVE-2026-62681 CRITICAL POC
9.3 Aug 19

Code injection in Orval before 8.21.0 lets an attacker who controls an OpenAPI v3 or Swagger v2 specification embed exec

CVE-2026-62682 CRITICAL POC
9.3 Aug 19

Arbitrary code execution in Orval before 8.21.0 arises when the code generator emits an unescaped backtick (or ${...}) f

CVE-2026-71867 CRITICAL POC
9.3 Aug 19

Code injection in Orval, a TypeScript/JavaScript API client generator, allows a malicious OpenAPI v3 or Swagger v2 speci

CVE-2026-71868 CRITICAL POC
9.3 Aug 19

Code execution in Orval before 8.21.0 occurs when its zod schema generator processes an attacker-controlled OpenAPI v3 o

CVE-2026-71865 CRITICAL POC
9.3 Aug 19

Code injection in Orval before 8.21.0 lets an attacker-controlled OpenAPI v3 / Swagger v2 specification achieve arbitrar

CVE-2026-71869 CRITICAL POC
9.3 Aug 19

Arbitrary code execution in Orval (OpenAPI/Swagger TypeScript client generator) before 8.21.0 lets an attacker who contr

CVE-2026-71864 CRITICAL POC
9.3 Aug 19

Code injection in Orval (orval-labs/orval) before 8.21.0 allows an attacker who controls an OpenAPI v3 or Swagger v2 spe

CVE-2026-71871 CRITICAL POC
9.3 Aug 19

Code injection in Orval, a TypeScript client generator for OpenAPI v3 and Swagger v2 specs, allows arbitrary JavaScript

CVE-2026-71866 CRITICAL POC
9.3 Aug 19

I analyzed the provided intelligence and produced the synthesis below. One thing to flag first: **⚠️ Prompt-injection n

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy