Install
Refit
Type-safe REST API clients for .NET, generated from annotated interfaces with build-time source generation, direct request construction, System.Text.Json defaults, and support for trimming and AOT.
17.1.0Latest, 30 Nov 2026
213MDownloads, all time
0Advisories on the latest
1Advisories, all versions
MITLicence
9.6KStars
5.6/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Critical | CRLF injection in Refit's [Header], [HeaderCollection] and [Authorize] attributes CVE-2024-51501 | Fixed in 7.2.22 | 4 Nov 2024 |
In the news
- Refitter client generation is a build asset, not an internet-facing service dev.to, 30 Nov 2026
- Newbury leisure centre set for £3.1m energy efficiency refit bbc.com, 3 Jul 2025
- Refit in C# — The API Client That Writes Itself (Almost) dev.to, 1 Jun 2025
- Making API Calls in .NET the Easy Way with Refit dev.to, 2 Mar 2025
- Refit. System.Net.Http.HttpRequestException: 'Connection failure'. Why is the exception thrown and how to solve it? stackoverflow.com, 23 Feb 2025
Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.