CVE-2026-63344: Refitter allows arbitrary code execution through unescaped OpenAPI content-type values
Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-p32v-8v8j-j534
Summary
Refitter allows arbitrary code execution because it emits unescaped OpenAPI content-type values directly into C# attribute strings. Engineering and security teams using Refitter must update their packages immediately.
Who is affected
Applications that compile a Refitter client generated from an attacker-controlled or attacker-influenced OpenAPI description are vulnerable. A crafted content-type key breaks out of the attribute and enclosing interface namespaces to inject a top-level file class with a ModuleInitializer method, executing arbitrary code upon assembly load.
Exploitability
The vulnerability is remotely exploitable over the network with low attack complexity and no privileges or user interaction required. It has a critical CVSS score of 9.3 (vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N), an EPSS score of 0.004, and is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade NuGet package Refitter to version 2.1.2 or later.
How to check your project
- Check project dependency files (such as packages.csproj or packages.lock.json) for the NuGet package Refitter to see if versions prior to 2.1.2 are in use.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| NuGet | Refitter |
>= 0, < 2.1.2 | 2.1.2 | dotnet add package Refitter --version 2.1.2 |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the vulnerability in Refitter?
Refitter emits the spec's content-type key verbatim into a Refit attribute string without escaping quotation marks or validating characters.
When does the injected malicious code execute?
The injected code executes automatically at application startup because .NET runs [ModuleInitializer] methods during assembly load.
Is the --skip-validation flag required for this attack to succeed?
No, a crafted value can survive Refitter's default OpenAPI validation without requiring the --skip-validation flag.
Original advisory description
References
- WEB https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-63344
- WEB https://github.com/christianhelle/refitter/pull/1178
- WEB https://github.com/christianhelle/refitter/commit/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67
- PACKAGE https://github.com/christianhelle/refitter
- WEB https://github.com/christianhelle/refitter/releases/tag/2.1.2
- WEB https://github.com/user-attachments/files/29394848/reproduce.sh
- WEB https://github.com/user-attachments/files/29394851/maintainer-report.txt
- WEB https://github.com/user-attachments/files/29394853/make_spec.py
Source records: GHSA-p32v-8v8j-j534 (OSV.dev) · EPSS by FIRST, 2026-11-22.