CVE-2026-63346
Published:October 30, 2026
Updated:November 03, 2026
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.
Affected Packages
Refitter.Core (DOT_NET):
Affected version(s) >=0.2.1.0 <2.1.2 || >=1.0.0.0 <2.1.2 || >=2.0.0.0 <2.1.2Fix Suggestion:
Update to version 2.1.2https://github.com/christianhelle/refitter.git (GITHUB):
Affected version(s) >=0.1.3-alpha <2.1.2 || >=1.0.0 <2.1.2 || >=2.0.0 <2.1.2Fix Suggestion:
Update to version 2.1.2refitter (NUGET):
Affected version(s) >=0.1.2-alpha <2.1.2 || >=2.0.0 <2.1.2 || >=1.0.0 <2.1.2Fix Suggestion:
Update to version 2.1.2refitter.core (NUGET):
Affected version(s) >=0.2.1-alpha <2.1.2 || >=2.0.0 <2.1.2 || >=1.0.0 <2.1.2Fix Suggestion:
Update to version 2.1.2Related Resources (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.35