CVE-2026-62680 Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm orval(npm) | < 8.22.0 | 8.22.0 | Fixed |
| orval-labs orval | = < 8.22.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| orval-labs orval | = < 8.22.0 | No fix listed |
| npm orval(npm) | < 8.22.0 | 8.22.0 |
References
- https://github.com/orval-labs/orval/security/advisories/GHSA-cxq5-97v7-87j8 exploit vendor-advisory
- https://github.com/orval-labs/orval/pull/3723 patch
- https://github.com/orval-labs/orval/commit/23786c056f4eba38c02bf2968677988dbbe4de10 patch
- https://github.com/orval-labs/orval/releases/tag/v8.22.0
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com
- github.com product