CVE-2026-62680: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in orval-labs orval
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.
AI Analysis
Technical Summary
Orval, a tool generating type-safe JavaScript clients from OpenAPI and Swagger specifications, improperly limits pathname resolution for external $ref values prior to version 8.22.0. This lack of confinement or allowlisting allows an attacker to craft malicious OpenAPI descriptions that cause the tool to read arbitrary local files outside the intended directory or make requests to internal or attacker-controlled HTTP services. The vulnerability is located in the external reference loading code within packages/orval/src/import-specs.ts. The issue is addressed in Orval version 8.22.0.
Potential Impact
An attacker who can supply a malicious OpenAPI specification to Orval can cause the tool to read arbitrary local files or access internal HTTP services during client generation. This can lead to disclosure of sensitive information (confidential files) and inclusion of untrusted remote schemas in generated clients. The vulnerability has a CVSS score of 7.1, indicating high severity with high confidentiality impact, low integrity impact, and no availability impact.
Mitigation Recommendations
Upgrade Orval to version 8.22.0 or later, where this path traversal vulnerability is fixed by restricting external $ref resolution to prevent unauthorized file and network access. Patch status is confirmed fixed in 8.22.0. Until upgrading, avoid processing untrusted OpenAPI specifications with Orval.
CVE-2026-62680: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in orval-labs orval
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.
CVSS v3.1
Score 7.1high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval, a tool generating type-safe JavaScript clients from OpenAPI and Swagger specifications, improperly limits pathname resolution for external $ref values prior to version 8.22.0. This lack of confinement or allowlisting allows an attacker to craft malicious OpenAPI descriptions that cause the tool to read arbitrary local files outside the intended directory or make requests to internal or attacker-controlled HTTP services. The vulnerability is located in the external reference loading code within packages/orval/src/import-specs.ts. The issue is addressed in Orval version 8.22.0.
Potential Impact
An attacker who can supply a malicious OpenAPI specification to Orval can cause the tool to read arbitrary local files or access internal HTTP services during client generation. This can lead to disclosure of sensitive information (confidential files) and inclusion of untrusted remote schemas in generated clients. The vulnerability has a CVSS score of 7.1, indicating high severity with high confidentiality impact, low integrity impact, and no availability impact.
Mitigation Recommendations
Upgrade Orval to version 8.22.0 or later, where this path traversal vulnerability is fixed by restricting external $ref resolution to prevent unauthorized file and network access. Patch status is confirmed fixed in 8.22.0. Until upgrading, avoid processing untrusted OpenAPI specifications with Orval.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-14T20:22:04.395Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85f0f8acd9273b496dcaec
Added to database: 08/19/2026, 18:07:52 UTC
Last enriched: 08/19/2026, 18:22:30 UTC
Last updated: 08/19/2026, 23:18:45 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.