{"id":"CVE-2026-63346","summary":"Refitter: C# source injection through OpenAPI header parameter names","details":"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(\"\u003cname\u003e\")]` 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.","aliases":["GHSA-58x9-vjvp-6mx8"],"modified":"2026-11-04T02:37:30.051157109Z","published":"2026-10-30T22:17:02.231Z","database_specific":{"cwe_ids":["CWE-116","CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63346.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/christianhelle/refitter/releases/tag/2.1.2"},{"type":"WEB","url":"https://github.com/user-attachments/files/29395048/maintainer-report.txt"},{"type":"WEB","url":"https://github.com/user-attachments/files/29395050/make_spec.py"},{"type":"WEB","url":"https://github.com/user-attachments/files/29395051/reproduce.sh"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63346.json"},{"type":"ADVISORY","url":"https://github.com/christianhelle/refitter/security/advisories/GHSA-58x9-vjvp-6mx8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63346"},{"type":"FIX","url":"https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1"},{"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":"63a19b03699a9c267d6fab5f758ec26484db83a1"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.1.2"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"63a19b03699a9c267d6fab5f758ec26484db83a1"}],"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/osv-test-cve-osv-conversion/osv-output/CVE-2026-63346.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"}]}