CVE-2026-63184

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

Published Oct 30, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.1, the `refitter` dotnet tool invokes `NJsonSchema` with unsafe defaults for `$ref` resolution when generating Refit interfaces and contracts from attacker-controlled or attacker-influenced OpenAPI descriptions. Remote `http(s)` references cause requests from the developer or CI host and inline untrusted remote schema content into generated output. Absolute local file paths and relative `../` traversal outside the input directory also resolve and inline local content, permitting arbitrary local-file disclosure. The demonstrated chain stops at server-side request forgery, remote file inclusion, and local file inclusion, not code execution: Refit sets the base URL at runtime, enum values use verbatim-string doubling, and string defaults are escaped. This issue is fixed in version 2.1.1.

Analysis

AI-generated

Technical impact

Refitter injects unvalidated OpenAPI $ref references into generated C# client code, allowing an attacker to supply remote http(s) URLs or local file paths that are resolved on the developer or CI machine. The resulting resolution causes the host to perform external requests or read local files, enabling data exfiltration or SSRF. The flaw does not provide direct code execution because Refitter does not execute the output; it merely generates source that, when compiled, may expose included data through API calls. Thus the impact is limited to network requests and local file disclosure on the build host.

Affected Systems

The CVE affects versions of Refitter below 2.1.1, including the 2.1.0 and earlier releases distributed via the dotnet tool. These versions were used by developers to generate client code from external OpenAPI specifications.

Risk and Exploitability

The CVSS score of 7.1 reflects a moderate to high severity due to the potential for SSRF and local file inclusion. EPSS information is not available, and the vulnerability is not listed in the KEV catalog. The attack requires control over the OpenAPI specification supplied to Refitter, which is typically a trusted source; if an attacker can influence that source, they can execute the chain. The risk is therefore significant for development or continuous‑integration environments that process untrusted specifications.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Refitter to version 2.1.1 or newer, where the unsafe $ref resolution has been disabled
  • If an upgrade is not possible, run the refitter dotnet tool in a sandboxed environment with restricted outbound network access and no read permission to sensitive local files
  • Ensure that any OpenAPI specifications processed by Refitter come from trusted sources and validate or sanitize $ref references before feeding them into the tool

Generated by OpenCVE AI on October 30, 2026 at 23:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Christianhelle
Christianhelle refitter
Vendors & Products Christianhelle
Christianhelle refitter
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.1, the `refitter` dotnet tool invokes `NJsonSchema` with unsafe defaults for `$ref` resolution when generating Refit interfaces and contracts from attacker-controlled or attacker-influenced OpenAPI descriptions. Remote `http(s)` references cause requests from the developer or CI host and inline untrusted remote schema content into generated output. Absolute local file paths and relative `../` traversal outside the input directory also resolve and inline local content, permitting arbitrary local-file disclosure. The demonstrated chain stops at server-side request forgery, remote file inclusion, and local file inclusion, not code execution: Refit sets the base URL at runtime, enum values use verbatim-string doubling, and string defaults are escaped. This issue is fixed in version 2.1.1.
Title Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion
Weaknesses CWE-829
CWE-918
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 2:43 PM
Reserved
Jul 15, 2026, 10:13 PM
Status
Deferred
Published
Oct 30, 2026, 10:16 PM
Modified
Nov 2, 2026, 7:35 PM