{"vuln_id":"GHSA-p32v-8v8j-j534","aliases":["CVE-2026-63344"],"description":"Refitter allows arbitrary code execution through unescaped OpenAPI content-type values","published_at":"2026-11-20T00:06:52Z","modified_at":"2026-11-20T00:06:53Z","first_seen_at":"2026-11-21T19:15:19.334670Z","severity":"critical","severity_source":"ghsa","cvss_score":9.3,"cvss_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","cwe":["CWE-94","CWE-116"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-p32v-8v8j-j534"},"matched_alias":null,"items":[{"id":2341,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-p32v-8v8j-j534 / CVE-2026-63344: Refitter allows arbitrary code execution through unescaped OpenAPI content-type values","summary":"Refitter allows arbitrary code execution through unescaped OpenAPI content-type values\n\n### Summary\n\nRefitter emits the spec's content-type key (content map key in requestBody/responses) verbatim into a Refit `[Headers(\"Accept:\n\", \"Content-Type:\n\")]` attribute string without escaping\n`\"`. A crafted value survives Refitter's default OpenAPI validation, breaks out of the attribute and\nthe enclosing interface + namespace, injects a top-level `file class` with a `[ModuleInitializer]`\nmethod, and reopens so the file stays valid. .NET runs `[ModuleInitializer]` methods at assembly\nload, so the attacker's code executes at application startup. Verified on Refitter 2.0.0 / .NET 8.\n\nThe malicious input is a content-type KEY such as: content: { 'application/\n': {schema} }.\nNo `--skip-validation` is required.\n\n### PoC\n\n`reproduce.sh` (+ `make_spec.py`) attached: generates with default validation, compiles into a\nconsole app, runs it (Main does not touch the client), and shows a marker written at assembly load.\n\n### Impact\n\nCode execution at assembly load (process startup) in any application that compiles a Refitter client\ngenerated from an attacker-controlled or attacker-influenced OpenAPI description. Estimated Critical, e.g.\n`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).\n\n### Suggested fix\n\nEscape every spec-derived string before emitting it into a Refit attribute (escape `\"`, `\\`,\nreject newlines) and validate characters. We recommend auditing all attribute emissions that embed\nspec-derived values, using one shared encoder.\n[reproduce.sh](https://github.com/user-attachments/files/29394848/reproduce.sh)\n[maintainer-report.txt](https://github.com/user-attachments/files/29394851/maintainer-report.txt)\n[make_spec.py](https://github.com/user-attachments/files/29394853/make_spec.py)\n\nAffected packages: nuget:Refitter\nPatched: Refitter 2.1.2","url":"https://github.com/advisories/GHSA-p32v-8v8j-j534","published_at":"2026-11-20T00:06:52Z","updated_at":"2026-11-20T00:06:53Z","fetched_at":"2026-11-21T19:15:18.416763Z","severity":"critical","cvss_score":9.3,"epss":0.00568,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"Refitter","vuln_id":"CVE-2026-63344","vuln_ids":["CVE-2026-63344","GHSA-P32V-8V8J-J534"],"tags":["ghsa","nuget","CWE-94","CWE-116"],"cluster_id":2114,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2341","html":"https://vulnwatch.ve1ve2.com/item/2341"}}]}