CVE-2026-62680: Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref

Published Aug 19, 2026
·
Updated

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 Software

1 affected component
npm/orval<8.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Orval to a version that resolves this vulnerability.

    Fixed in 8.22.0

Event History

Aug 19, 2026
CVE Published
via MITRE·05:42 PM
Data Sourced
via MITRE·05:42 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is most exposed to this issue?

Developers and CI systems running Orval before 8.22.0 are exposed when they process an attacker-controlled OpenAPI v3 or Swagger v2 description. The requests and file reads occur from the host performing generation.

2

What must an attacker control to exploit it?

An attacker needs to supply or influence an API specification containing external $ref values. Those references can point to attacker-selected or internal HTTP services, absolute local paths, or files outside the input directory.

3

How can I determine whether my environment is affected?

Check whether Orval is earlier than 8.22.0 and whether it processes OpenAPI or Swagger specifications from untrusted or externally influenced sources. The affected behavior is external reference loading in packages/orval/src/import-specs.ts.

4

What should be done if this is identified?

Upgrade Orval to version 8.22.0, which fixes the issue. Until upgraded, avoid processing attacker-controlled API descriptions because external $ref values can trigger network requests and local file inclusion during generation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203