{"id":"CVE-2026-63346","published":"2026-10-30T22:17:02Z","modified":"2026-11-02T14:47:20Z","title":"Refitter: C# source injection through OpenAPI header parameter names","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, the header parameter name in `parameters[].name` with `in: header` is emitted verbatim into a Refit `[Header(\"<name>\")]` attribute string without escaping quotation marks. An attacker-influenced OpenAPI description can pass default validation without `--skip-validation` and break out from the parameter-list position by closing the parameter and method syntax, attribute, interface, and namespace. The generated file can remain valid C# while containing a top-level file class with a `[ModuleInitializer]` method, which executes attacker code when the compiled assembly is loaded at application startup, even if the client is never called. Query `AliasAs` and enum/default value sinks are escaped; this flaw is in header-name attribute-string emission. 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.47948,"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-58x9-vjvp-6mx8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/christianhelle/refitter/pull/1178","tags":["x_refsource_MISC"]},{"url":"https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1","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/29395048/maintainer-report.txt","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/29395050/make_spec.py","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/29395051/reproduce.sh","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-63346","repos":[{"name":"googlesky/CVE-2026-63346","url":"https://github.com/googlesky/CVE-2026-63346","stars":0,"created":"2026-11-21"}]},"first":{"date":"2026-11-21","source":"PoC-in-GitHub","url":"https://github.com/googlesky/CVE-2026-63346"},"provenance":"source"},"vendorSlug":"christianhelle","affectedVersions":[{"vendor":"christianhelle","product":"refitter","versions":["< 2.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T14:46:50.420778Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Refitter","vulnerableRanges":["<2.1.2"],"patched":["2.1.2"],"from":["GHSA-58x9-vjvp-6mx8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-114540","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-63346","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.42,"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"}}