All vulnerabilities

NuGet

CVE-2026-63184

Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

Severity
High 7.1
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.1.1
Exploit chance
0.6% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-829Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Also known as
GHSA-x6w4-f264-3vvr
Sources
OSV.dev and GitHub

Description

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 --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.

  • $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…

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
RefitterNuGet · osv:NuGet:Refitter
  • Every version before 2.1.1

About Refitter

Total downloads (NuGet)
12,814,005NuGet, 23 Nov 2026

References