CVE-2026-63346: Refitter allows code execution through unescaped OpenAPI header parameter names
Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-58x9-vjvp-6mx8
Summary
Refitter fails to sanitize OpenAPI header parameter names before generating Refit attribute strings, allowing for code injection via attribute breakout. Engineering teams using Refitter should update to version 2.1.2 or later immediately to prevent remote code execution.
Who is affected
The vulnerability allows attackers to execute arbitrary code during assembly load if they can influence the OpenAPI specification processed by Refitter. Successful exploitation breaks out of the generated C# attribute context to inject a class with a ModuleInitializer, which triggers at application startup regardless of whether the generated client is explicitly invoked.
Exploitability
The vulnerability is rated as CRITICAL with an attack vector requiring no authentication or user interaction. Current exploit probability is low based on the EPSS score of 0.004, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Refitter NuGet package to version 2.1.2 or later.
- Audit any existing Refitter-generated clients for suspicious attribute strings if generated from untrusted OpenAPI specifications.
How to check your project
- Inspect the project's .csproj or packages.config file to determine if the NuGet Refitter package version is earlier than 2.1.2.
- Check dependency tree outputs using 'dotnet list package --vulnerable' to identify affected Refitter versions.
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
Does this require --skip-validation to exploit?
No, the vulnerability persists even with default OpenAPI validation enabled as the payload is crafted to survive the default checks.
When does the injected code execute?
The injected code executes automatically at application startup during the assembly load process.
Are all attributes in Refitter affected?
The report specifically identifies header parameter names as the primary injection vector, though it suggests auditing all attribute emissions that embed spec-derived values.
Original advisory description
References
- WEB https://github.com/christianhelle/refitter/security/advisories/GHSA-58x9-vjvp-6mx8
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-63346
- WEB https://github.com/christianhelle/refitter/pull/1178
- WEB https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1
- PACKAGE https://github.com/christianhelle/refitter
- WEB https://github.com/christianhelle/refitter/releases/tag/2.1.2
- WEB https://github.com/user-attachments/files/29395048/maintainer-report.txt
- WEB https://github.com/user-attachments/files/29395050/make_spec.py
- WEB https://github.com/user-attachments/files/29395051/reproduce.sh
Source records: GHSA-58x9-vjvp-6mx8 (OSV.dev) · EPSS by FIRST, 2026-11-22.