# CVE-2026-63344: Refitter: C# source injection through OpenAPI content-type map keys

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-30T22:15:27.846Z
- Modified: 2026-11-20T00:15:05.570Z
- Also known as: GHSA-p32v-8v8j-j534
- Weaknesses: CWE-94, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- christianhelle refitter: < 2.1.2
- Refitter (NuGet): before 2.1.2

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534> (exploit, web)
- <https://github.com/christianhelle/refitter/pull/1178> (web)
- <https://github.com/christianhelle/refitter/commit/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67> (web)
- <https://github.com/christianhelle/refitter/releases/tag/2.1.2> (web)
- <https://github.com/user-attachments/files/29394848/reproduce.sh> (web)
- <https://github.com/user-attachments/files/29394851/maintainer-report.txt> (web)
- <https://github.com/user-attachments/files/29394853/make_spec.py> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63344> (advisory)
- <https://github.com/christianhelle/refitter> (package)

## Sources

- CVE List: [CVE-2026-63344](https://www.cve.org/CVERecord?id=CVE-2026-63344), CVE Terms of Use, modified 2026-11-06
- GitHub Advisory Database: [GHSA-p32v-8v8j-j534](https://github.com/advisories/GHSA-p32v-8v8j-j534), CC-BY-4.0, modified 2026-11-20
- NVD: [CVE-2026-63344](https://nvd.nist.gov/vuln/detail/CVE-2026-63344), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-63344 · Whole record: https://cve.day/CVE-2026-63344.json · Rebuilt by cve.day 2026-11-25T22:59:48.042Z
