# CVE-2026-63346: Refitter: C# source injection through OpenAPI header parameter names

- 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:17:02.231Z
- Modified: 2026-11-20T00:15:05.562Z
- Also known as: GHSA-58x9-vjvp-6mx8
- 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, 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.

(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-58x9-vjvp-6mx8> (exploit, web)
- <https://github.com/christianhelle/refitter/pull/1178> (web)
- <https://github.com/christianhelle/refitter/commit/63a19b03699a9c267d6fab5f758ec26484db83a1> (web)
- <https://github.com/christianhelle/refitter/releases/tag/2.1.2> (web)
- <https://github.com/user-attachments/files/29395048/maintainer-report.txt> (web)
- <https://github.com/user-attachments/files/29395050/make_spec.py> (web)
- <https://github.com/user-attachments/files/29395051/reproduce.sh> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63346> (advisory)
- <https://github.com/christianhelle/refitter> (package)

## Sources

- CVE List: [CVE-2026-63346](https://www.cve.org/CVERecord?id=CVE-2026-63346), CVE Terms of Use, modified 2026-11-02
- GitHub Advisory Database: [GHSA-58x9-vjvp-6mx8](https://github.com/advisories/GHSA-58x9-vjvp-6mx8), CC-BY-4.0, modified 2026-11-20
- NVD: [CVE-2026-63346](https://nvd.nist.gov/vuln/detail/CVE-2026-63346), Public domain, modified 2026-11-02

---

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