{"id":"CVE-2026-63344","published":"2026-10-30T22:15:27Z","modified":"2026-11-06T18:49:39Z","title":"Refitter: C# source injection through OpenAPI content-type map keys","vendor":"christianhelle","product":"refitter","tier":"tail","description":{"text":"Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, content-type keys in the content maps of `requestBody/responses` are emitted verbatim into a Refit `[Headers(\"Accept: <ct>\", \"Content-Type: <ct>\")]` attribute string without escaping quotation marks. A crafted content-type key in an attacker-influenced OpenAPI description survives default validation without `--skip-validation`, breaks out of the attribute string and enclosing interface and namespace, and can introduce a top-level file class while leaving valid generated C#. A `[ModuleInitializer]` method in that class executes attacker code when the generated assembly is loaded at application startup, without requiring a call to the client. The behavior was verified with Refitter 2.0.0 and .NET 8. This issue is fixed in version 2.1.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00568,"percentile":0.47949,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/christianhelle/refitter/pull/1178","tags":["x_refsource_MISC"]},{"url":"https://github.com/christianhelle/refitter/commit/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67","tags":["x_refsource_MISC"]},{"url":"https://github.com/christianhelle/refitter/releases/tag/2.1.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/29394848/reproduce.sh","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/29394851/maintainer-report.txt","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/29394853/make_spec.py","tags":["x_refsource_MISC"]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":9.59},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-21","earliestUrl":"https://github.com/googlesky/CVE-2026-63344","repos":[{"name":"googlesky/CVE-2026-63344","url":"https://github.com/googlesky/CVE-2026-63344","stars":0,"created":"2026-11-21"}]},"first":{"date":"2026-11-21","source":"PoC-in-GitHub","url":"https://github.com/googlesky/CVE-2026-63344"},"provenance":"source"},"vendorSlug":"christianhelle","affectedVersions":[{"vendor":"christianhelle","product":"refitter","versions":["< 2.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-11-06T18:49:16.142621Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Refitter","vulnerableRanges":["<2.1.2"],"patched":["2.1.2"],"from":["GHSA-p32v-8v8j-j534"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-114539","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-63184","published":"2026-10-30","fixed":"2.1.1","kev":false,"link":{"from":"CVE-2026-63184","to":"CVE-2026-63344","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Refitter","fromFixed":"2.1.1","toFixed":"2.1.2","daysApart":0},{"kind":"similar","provenance":"machine","score":0.43,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-63344","published":"2026-10-30","fixed":"2.1.2","kev":false},{"cve":"CVE-2026-63345","published":"2026-10-30","fixed":"2.1.2","kev":false},{"cve":"CVE-2026-63346","published":"2026-10-30","fixed":"2.1.2","kev":false}],"package":"NuGet:Refitter"}}