NuGet
CVE-2026-63344
Refitter allows arbitrary code execution through unescaped OpenAPI content-type values
- Severity
- Critical
- Published
- 20 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.1.2
- Exploit chance
- 0.6% in the next 30 daysHigher than 47% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-p32v-8v8j-j534
- Sources
- OSV.dev and GitHub
Description
Refitter emits the spec's content-type key (content map key in requestBody/responses) verbatim into a Refit [Headers("Accept: ", "Content-Type: ")] attribute string without escaping ". A crafted value survives Refitter's default OpenAPI validation, breaks out of the attribute and the enclosing interface + namespace, injects a top-level file class with a [ModuleInitializer] method, and reopens so the file stays valid. .NET runs [ModuleInitializer] methods at assembly load, so the attacker's code executes at application startup. Verified on Refitter 2.0.0 / .NET 8.
The malicious input is a content-type KEY such as: content: { 'application/': {schema} }. No --skip-validation is required.
Code execution at assembly load (process startup) in any application that compiles a Refitter client generated from an attacker-controlled or attacker-influenced OpenAPI description. Estimated Critical, e.g. 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 (the CNA sets the final score).
Affected software
| Software | Affected versions |
|---|---|
RefitterNuGet · osv:NuGet:Refitter |
|
About Refitter
- Total downloads (NuGet)
- 12,814,005NuGet, 23 Nov 2026
Vulnerabilities in Refitter
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 3
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-63184Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusionHigh 7.1 20 Nov 2026
- CVE-2026-63346Refitter allows code execution through unescaped OpenAPI header parameter namesCritical 20 Nov 2026
- CVE-2026-63345Refitter allows arbitrary code execution through unescaped OpenAPI pathsCritical 20 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-63344
- GitHub Advisory Database https://github.com/advisories/GHSA-p32v-8v8j-j534