CVE-2026-63184: Refitter Unrestricted OpenAPI References Permit Build-host Vulnerability

HIGH
Advisory Identifier: GHSA-x6w4-f264-3vvr
CVSS 7.1
CWE-829 CWE-918
Published
Advisory Summary

CVE-2026-63184 is a HIGH (CVSS 7.1) unrestricted openapi references permit build-host vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Refitter libraries in the NuGet ecosystem. The issue involves unrestricted openapi references permit build-host ssrf and file inclusion. Remediation is available by upgrading affected packages to version 2.1.1.

CVE-2026-63184 at a Glance

CVE Identifier CVE-2026-63184
GHSA Identifier GHSA-x6w4-f264-3vvr
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Refitter
Package Ecosystem NuGet
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-63184

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

Refitter fixed: 2.1.1
Upgrade Refitter to 2.1.1
Verify Direct and Transitive Dependencies

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

inspect dependencies for Refitter

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-63184, inspect your project dependencies for Refitter:

inspect dependencies for Refitter

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

Note: Verify declared build manifests and deployed runtime container environments.

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 Refitter, 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 Refitter (the `refitter` dotnet tool, built on NJsonSchema for `$ref` resolution) fetches remote `http(s)` URLs and reads local files (including absolute paths and `../` traversal outside the input directory), inlining the referenced schema into the generated Refit interface/contracts. Running `refitter <spec> --output Out.cs` 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 Refitter 2.0.0. ### Details - `$ref: http://attacker-or-internal/evil.json#/...` -> build host fetches (SSRF) and inlines the remote schema (RFI); confirmed property `REMOTE_REFIT_PROP`. - `$ref: /abs/path.json#/...` or `../../secret.json#/...` -> out-of-tree local file read + inlined (LFI); confirmed property `REFIT_LFI_MARKER`. Both absolute and relative traversal work. No RCE: Refitter emits Refit interfaces with no baseUrl string literal (Refit sets the base address at runtime), enum values use C# verbatim-string doubling, and string defaults are escaped. The chain stops at SSRF + RFI + LFI. The `$ref` resolution is performed by Refitter's NJsonSchema dependency, which Refitter ships and invokes with these unsafe defaults. ### PoC `reproduce.sh` (+ `make_spec.py`, `listener.py`) attached: installs the .NET SDK + Refitter if needed, confirms LFI (out-of-tree read), SSRF (listener hit during generation), and RFI (remote schema inlined). Verified on 2.0.0. ### Impact Build-time SSRF (CWE-918) from the developer or CI host, disclosure of arbitrary local files (CWE-22), and inclusion of untrusted remote content (CWE-829), from running Refitter on an attacker-controlled or attacker-influenced OpenAPI description. No code execution. Estimated Medium-High, e.g. `[reproduce.sh](https://github.com/user-attachments/files/29395269/reproduce.sh)` (the CNA sets the final score). ### Suggested 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). Apply at all nesting levels. Coordinate with NJsonSchema, where the resolver lives. [maintainer-report.txt](https://github.com/user-attachments/files/29395271/maintainer-report.txt) [advisory.md](https://github.com/user-attachments/files/29395272/advisory.md) [reproduce.sh](https://github.com/user-attachments/files/29395283/reproduce.sh) [maintainer-report.txt](https://github.com/user-attachments/files/29395284/maintainer-report.txt) [advisory.md](https://github.com/user-attachments/files/29395285/advisory.md) [listener.py](https://github.com/user-attachments/files/29395286/listener.py) [make_spec.py](https://github.com/user-attachments/files/29395288/make_spec.py)

CVE-2026-63184 Affected Refitter Versions

1 component(s)
Fixed Versions:
2.1.1
Product / Package Ecosystem Affected Versions Fixed Version
Refitter
NuGet
< 2.1.1
2.1.1

References

Frequently Asked Questions

What is CVE-2026-63184?
CVE-2026-63184 is a security vulnerability in Refitter involving Unrestricted OpenAPI references permit build-host SSRF and file inclusion under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Refitter versions are affected?
Affected versions include releases prior to 2.1.1 across affected packages: Refitter.
What version fixes CVE-2026-63184?
Upgrading to 2.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Refitter affected?
Yes, Refitter is affected in releases prior to 2.1.1. Upgrade your dependency to 2.1.1 or later.
What is the CVSS score of CVE-2026-63184?
CVE-2026-63184 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-63184?
CVE-2026-63184 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 NuGet dependencies for CVE-2026-63184?
Run the dependency tree command: 'inspect dependencies for Refitter'. 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-x6w4-f264-3vvr",
  "modified" : "2026-11-20T14:35:29Z",
  "published" : "2026-11-20T14:35:29Z",
  "aliases" : [ "CVE-2026-63184" ],
  "summary" : "Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion",
  "details" : "### Summary\n\nRefitter (the `refitter` dotnet tool, built on NJsonSchema for `$ref` resolution) fetches remote\n`http(s)` URLs and reads local files (including absolute paths and `../` traversal outside the input\ndirectory), inlining the referenced schema into the generated Refit interface/contracts. Running\n`refitter <spec> --output Out.cs` on a spec whose `$ref` points at an attacker/internal URL or an\narbitrary local file yields SSRF, remote file inclusion, and local file inclusion. Verified on\nRefitter 2.0.0.\n\n### Details\n\n- `$ref: http://attacker-or-internal/evil.json#/...` -> build host fetches (SSRF) and inlines the\n  remote schema (RFI); confirmed property `REMOTE_REFIT_PROP`.\n- `$ref: /abs/path.json#/...` or `../../secret.json#/...` -> out-of-tree local file read + inlined\n  (LFI); confirmed property `REFIT_LFI_MARKER`. Both absolute and relative traversal work.\n\nNo RCE: Refitter emits Refit interfaces with no baseUrl string literal (Refit sets the base address at\nruntime), enum values use C# verbatim-string doubling, and string defaults are escaped. The chain\nstops at SSRF + RFI + LFI.\n\nThe `$ref` resolution is performed by Refitter's NJsonSchema dependency, which Refitter ships and\ninvokes with these unsafe defaults.\n\n### PoC\n\n`reproduce.sh` (+ `make_spec.py`, `listener.py`) attached: installs the .NET SDK + Refitter if needed,\nconfirms LFI (out-of-tree read), SSRF (listener hit during generation), and RFI (remote schema\ninlined). Verified on 2.0.0.\n\n### Impact\n\nBuild-time SSRF (CWE-918) from the developer or CI host, disclosure of arbitrary local files\n(CWE-22), and inclusion of untrusted remote content (CWE-829), from running Refitter on an\nattacker-controlled or attacker-influenced OpenAPI description. No code execution. Estimated\nMedium-High, e.g. `[reproduce.sh](https://github.com/user-attachments/files/29395269/reproduce.sh)` (the CNA sets the final score).\n\n### Suggested fix\n\nDon't resolve remote `$ref`s by default (opt-in + host allowlist); confine local `$ref` resolution to\nthe input directory tree (reject absolute paths and `../` escapes). Apply at all nesting levels.\nCoordinate with NJsonSchema, where the resolver lives.\n[maintainer-report.txt](https://github.com/user-attachments/files/29395271/maintainer-report.txt)\n[advisory.md](https://github.com/user-attachments/files/29395272/advisory.md)\n[reproduce.sh](https://github.com/user-attachments/files/29395283/reproduce.sh)\n[maintainer-report.txt](https://github.com/user-attachments/files/29395284/maintainer-report.txt)\n[advisory.md](https://github.com/user-attachments/files/29395285/advisory.md)\n[listener.py](https://github.com/user-attachments/files/29395286/listener.py)\n[make_spec.py](https://github.com/user-attachments/files/29395288/make_spec.py)",
  "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" : "NuGet",
      "name" : "Refitter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/christianhelle/refitter/security/advisories/GHSA-x6w4-f264-3vvr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63184"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/christianhelle/refitter/pull/1173"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/christianhelle/refitter/commit/6ad20a3803561225100b0a4bb6b12f947d23db7b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/christianhelle/refitter"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/christianhelle/refitter/releases/tag/2.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395269/reproduce.sh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395271/maintainer-report.txt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395272/advisory.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395283/reproduce.sh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395284/maintainer-report.txt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395285/advisory.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395286/listener.py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/29395288/make_spec.py"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T14:35:29Z",
    "nvd_published_at" : "2026-10-30T22:16:58Z"
  }
}