Skip to main content
← All vulnerabilities
CVE-2026-63184

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

Published
Last modified
published
Not listed in CISA KEV
Specific setups only
Fix
Fixed in 2.1.1
None on Exploit-DB, Metasploit or GitHub

Summary

Refitter, a .NET tool that generates C# REST API clients from OpenAPI descriptions, is affected when it processes untrusted specifications. Attackers can use crafted schema references to make the developer or CI build machine send requests to internal resources and read local files, which are then embedded in the generated code.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • christianhelle refitter

    fixed in 2.1.1

References 12

GitHub · christianhelle/refitter

GitHub · user-attachments/files