{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-63346","id":"CVE-2026-63346","title":"Refitter generated code injection via OpenAPI header parameter names","description":"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-","descriptionLong":"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.","published":"2026-10-30T22:17:02.231Z","updated":"2026-11-04T02:30:48.878967555Z","reserved":"2026-07-16T14:14:24.385Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.6,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.6,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"critical","source":"GitHub"}],"rating":"high","products":["christianhelle refitter"],"affectedProducts":[{"vendor":"christianhelle","product":"refitter","defaultStatus":null,"versions":[{"version":"< 2.1.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"NuGet","name":"Refitter","purl":"pkg:nuget/Refitter","ranges":["<2.1.2"],"fixed":["2.1.2"],"advisory":"GHSA-58x9-vjvp-6mx8"}],"cwes":["CWE-94","CWE-116"],"aliases":["GHSA-58x9-vjvp-6mx8"],"references":[{"url":"https://github.com/christianhelle/refitter/security/advisories/GHSA-58x9-vjvp-6mx8","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/christianhelle/refitter/pull/1178","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/christianhelle/refitter/releases/tag/2.1.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/user-attachments/files/29395048/maintainer-report.txt","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/user-attachments/files/29395050/make_spec.py","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/user-attachments/files/29395051/reproduce.sh","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63346.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63346","tags":["advisory"]},{"url":"https://github.com/christianhelle/refitter","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.0035,"epssPercentile":0.2946,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-63346","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63346","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-63346","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-58x9-vjvp-6mx8","ok":true,"note":"GHSA-58x9-vjvp-6mx8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-63346","ok":true,"note":"scored 2026-11-20"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}