Orval
Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.22.0
Fixed in 8.22.0
Mitigation
Upgrade orval to 8.22.0 or later.
References
- Vendor advisory github.com/orval-labs/orval/security/advisorie…
- Patch github.com/orval-labs/orval/pull/3723
- Patch github.com/orval-labs/orval/commit/23786c056f4…
1 more
- Release notes github.com/orval-labs/orval/releases/tag/v8.22…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.