CVE-2026-63346 Details
Description
Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, the header parameter name in `parameters[].name` with `in: header` is emitted verbatim into a Refit `[Header("<name>")]` attribute string without escaping quotation marks. An attacker-influenced OpenAPI description can pass default validation without `--skip-validation` and break out from the parameter-list position by closing the parameter and method syntax, attribute, interface, and namespace. The generated file can remain valid C# while containing a top-level file class with a `[ModuleInitializer]` method, which executes attacker code when the compiled assembly is loaded at application startup, even if the client is never called. Query `AliasAs` and enum/default value sinks are escaped; this flaw is in header-name attribute-string emission. The behavior was verified with Refitter 2.0.0 and .NET 8. This issue is fixed in version 2.1.2.
A vulnerability in Refitter, a tool for generating C# REST API clients using the Refit library, allows for remote code execution through header parameter injection. Prior to version 2.1.2, the tool emitted header parameter names directly into Refit's [Header] attribute without properly escaping quotation marks. This flaw enabled an attacker to manipulate the OpenAPI description, bypass default validation, and inject code that executed when the application started. The issue was verified in Refitter version 2.0.0 with .NET 8.
Users can upgrade to Refitter version 2.1.2, which addresses the vulnerability by escaping header parameter names and security scheme names before they are emitted into Refit attribute strings.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/christianhelle/refitter/security/advisories/GHSA-58x9-vjvp-6mx8 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1 | [email protected] | Source CodeVendor |
| https://github.com/christianhelle/refitter/pull/1178 | [email protected] | Issue TrackingVendor |
| https://github.com/christianhelle/refitter/releases/tag/2.1.2 | [email protected] | Release NotesVendor |
| https://github.com/christianhelle/refitter/security/advisories/GHSA-58x9-vjvp-6mx8 | [email protected] | AdvisoryExploitRemedyVendor |
| https://github.com/user-attachments/files/29395048/maintainer-report.txt | [email protected] | Broken Link |
| https://github.com/user-attachments/files/29395050/make_spec.py | [email protected] | Broken Link |
| https://github.com/user-attachments/files/29395051/reproduce.sh | [email protected] | Broken LinkExploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Refitter | <= 2.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion