{"id":"CVE-2026-63344","summary":"Refitter: C# source injection through OpenAPI content-type map keys","details":"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: \u003cct\u003e\", \"Content-Type: \u003cct\u003e\")]` 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.","aliases":["GHSA-p32v-8v8j-j534"],"modified":"2026-11-08T02:30:35.117168202Z","published":"2026-10-30T22:15:27.846Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63344.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-116","CWE-94"]},"references":[{"type":"WEB","url":"https://github.com/christianhelle/refitter/releases/tag/2.1.2"},{"type":"WEB","url":"https://github.com/user-attachments/files/29394848/reproduce.sh"},{"type":"WEB","url":"https://github.com/user-attachments/files/29394851/maintainer-report.txt"},{"type":"WEB","url":"https://github.com/user-attachments/files/29394853/make_spec.py"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63344.json"},{"type":"ADVISORY","url":"https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63344"},{"type":"FIX","url":"https://github.com/christianhelle/refitter/commit/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67"},{"type":"FIX","url":"https://github.com/christianhelle/refitter/pull/1178"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/christianhelle/refitter","events":[{"introduced":"0"},{"fixed":"2a9605af42c619af3cf5edd14c25580b0e06f651"},{"fixed":"ab4d8e439d6f0ee82ad49ee15323978d70fe5a67"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"2.1.2"}]},{"range":[{"fixed":"ab4d8e439d6f0ee82ad49ee15323978d70fe5a67"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"2a9605af42c619af3cf5edd14c25580b0e06f651"}],"source":"REFERENCES_TAG","original_tag":"2.1.2"}]}}],"versions":["2.1.1","2.1.0","2.0.0","1.7.3","1.7.2","1.7.1","1.7.0","1.6.5","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.6","1.5.5","1.5.4","1.5.3","1.5.2","1.5.1","1.5.0","1.4.1","1.4.0","1.3.2","1.3.1","1.3.0","1.2.0","1.1.3","1.1.2","1.1.1","1.0.2","1.0.1","1.0.0","0.9.9","0.9.8","0.9.7","0.9.6","0.9.5","0.9.4","0.9.2","0.9.1","0.9.0","0.8.7","0.8.6","0.8.5","0.8.4","0.8.3","0.8.2","0.8.1","0.8.0","0.7.5","0.7.4","0.7.3","0.7.2","0.7.1","0.7.0","0.6.3","0.6.2","0.6.1","0.6.0","0.5.30","0.5.28","0.5.27","0.5.26","0.5.25","0.5.3","0.5.2","0.5.1","0.5.0","0.4.2","0.4.1","0.4.0","0.3.17","0.3.16","0.3.4","0.3.3","0.3.2","0.3.1","0.3.0","0.2.4-alpha","0.2.3-alpha","0.2.2-alpha","0.2.1-alpha","0.2.0-alpha","0.1.5-alpha","0.1.4-alpha","0.1.3-alpha"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63344.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}