{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-63344","id":"CVE-2026-63344","title":"Refitter generated code injection via OpenAPI content-type keys","description":"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 wit","descriptionLong":"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.","published":"2026-10-30T22:15:27.846Z","updated":"2026-11-08T02:30:35.117168202Z","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-p32v-8v8j-j534"}],"cwes":["CWE-94","CWE-116"],"aliases":["GHSA-p32v-8v8j-j534"],"references":[{"url":"https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534","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/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67","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/29394848/reproduce.sh","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/user-attachments/files/29394851/maintainer-report.txt","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/user-attachments/files/29394853/make_spec.py","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63344.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63344","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-63344","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63344","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-63344","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p32v-8v8j-j534","ok":true,"note":"GHSA-p32v-8v8j-j534"},{"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-63344","ok":true,"note":"scored 2026-11-20"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}