CVE-2026-62680: Orval Generation-time SSRF + Remote/local File Vulnerability

HIGH
Advisory Identifier: GHSA-cxq5-97v7-87j8
CVSS 7.1
CWE-829 CWE-918 CWE-22
Published
Advisory Summary

CVE-2026-62680 is a HIGH (CVSS 7.1) generation-time ssrf + remote/local file vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Orval libraries in the npm ecosystem. The issue involves generation-time ssrf + remote/local file inclusion via unrestricted $ref. Remediation is available by upgrading affected packages to version 8.22.0.

CVE-2026-62680 at a Glance

CVE Identifier CVE-2026-62680
GHSA Identifier GHSA-cxq5-97v7-87j8
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Orval
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-62680

To remediate this vulnerability, upgrade all affected Orval dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

orval fixed: 8.22.0
npm install orval@8.22.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls orval

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-62680, inspect your project dependencies using npm:

npm ls orval

Analyze the terminal output to locate any version of Orval in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.22.0), your application is affected.

Note: The npm ls orval command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Orval, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Orval resolves OpenAPI `$ref`s by fetching remote `http(s)` URLs and reading local files (including absolute / out-of-tree paths), inlining the referenced schema into the generated client. Running `orval` on a spec whose `$ref` points at an attacker/internal URL or an arbitrary local file yields SSRF, remote file inclusion, and local file inclusion. Verified on 8.19.0. This is a different class from Orval's published output-injection CVEs (CVE-2026-22785/23947/24132/25141), none of which covers the `$ref` resolver. ### Details - `$ref: http://attacker/internal-evil.json#/...` → build host fetches (SSRF) and inlines the remote schema (RFI); confirmed property `REMOTE_ORVAL_PROP` in the generated client. - `$ref: /abs/path.json#/...` or `../../secret.json#/...` → out-of-tree local file read + inlined (LFI). No RCE: on 8.19.0 the description JSDoc is escaped (`*/`->`*\/`, the published fix), so `$ref` content cannot break out into code. The chain stops at SSRF + RFI + LFI. Fix: don't resolve remote `$ref`s by default (opt-in + host allowlist); confine local `$ref` resolution to the input directory tree (reject absolute paths and `../` escapes). ### PoC `reproduce.sh` attached: confirms LFI (out-of-tree read), SSRF (listener hit), RFI (remote schema inlined). Verified on Orval 8.19.0. ### Impact Build-time SSRF from the developer or CI host, disclosure of arbitrary local files, and inclusion of untrusted remote content, from running the generator on an attacker-controlled or attacker-influenced OpenAPI description. No code execution (output escaping is in place post the earlier fixes).

CVE-2026-62680 Affected Orval Versions

1 component(s)
Fixed Versions:
8.22.0
Product / Package Ecosystem Affected Versions Fixed Version
orval
npm
< 8.22.0
8.22.0

References

Frequently Asked Questions

What is CVE-2026-62680?
CVE-2026-62680 is a security vulnerability in Orval involving Generation-time SSRF + remote/local file inclusion via unrestricted $ref under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Orval versions are affected?
Affected versions include releases prior to 8.22.0 across affected packages: orval.
What version fixes CVE-2026-62680?
Upgrading to 8.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is orval affected?
Yes, orval is affected in releases prior to 8.22.0. Upgrade your dependency to 8.22.0 or later.
What is the CVSS score of CVE-2026-62680?
CVE-2026-62680 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-62680?
CVE-2026-62680 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check npm dependencies for CVE-2026-62680?
Run the dependency tree command: 'npm ls orval'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cxq5-97v7-87j8",
  "modified" : "2026-09-02T14:54:49Z",
  "published" : "2026-09-02T14:54:48Z",
  "aliases" : [ "CVE-2026-62680" ],
  "summary" : "Orval: Generation-time SSRF + remote/local file inclusion via unrestricted $ref",
  "details" : "### Summary\n\nOrval resolves OpenAPI `$ref`s by fetching remote `http(s)` URLs and reading local files (including\nabsolute / out-of-tree paths), inlining the referenced schema into the generated client. Running\n`orval` on a spec whose `$ref` points at an attacker/internal URL or an arbitrary local file yields\nSSRF, remote file inclusion, and local file inclusion. Verified on 8.19.0. This is a different class\nfrom Orval's published output-injection CVEs (CVE-2026-22785/23947/24132/25141), none of which covers\nthe `$ref` resolver.\n\n### Details\n\n- `$ref: http://attacker/internal-evil.json#/...` → build host fetches (SSRF) and inlines the remote\n  schema (RFI); confirmed property `REMOTE_ORVAL_PROP` in the generated client.\n- `$ref: /abs/path.json#/...` or `../../secret.json#/...` → out-of-tree local file read + inlined (LFI).\n\nNo RCE: on 8.19.0 the description JSDoc is escaped (`*/`->`*\\/`, the published fix), so `$ref` content\ncannot break out into code. The chain stops at SSRF + RFI + LFI.\n\nFix: don't resolve remote `$ref`s by default (opt-in + host allowlist); confine local `$ref`\nresolution to the input directory tree (reject absolute paths and `../` escapes).\n\n### PoC\n\n`reproduce.sh` attached: confirms LFI (out-of-tree read), SSRF (listener hit), RFI (remote schema\ninlined). Verified on Orval 8.19.0.\n\n### Impact\n\nBuild-time SSRF from the developer or CI host, disclosure of arbitrary local files, and inclusion of untrusted remote content, from running the generator on an attacker-controlled or attacker-influenced OpenAPI description. No code execution (output escaping is in place post the earlier fixes).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "orval"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/security/advisories/GHSA-cxq5-97v7-87j8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-62680"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/pull/3692"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/pull/3723"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/commit/23786c056f4eba38c02bf2968677988dbbe4de10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/orval-labs/orval"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orval-labs/orval/releases/tag/v8.22.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-829", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-02T14:54:48Z",
    "nvd_published_at" : "2026-08-19T18:16:54Z"
  }
}