# CVE-2026-63345: Refitter: C# source injection through OpenAPI path 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)
- Published: 2026-10-30T22:13:53.498Z
- Modified: 2026-11-20T00:15:05.538Z
- Also known as: GHSA-3fhm-p725-h3g3
- Weaknesses: CWE-94, CWE-1116
- SSVC (CISA-ADP): exploitation none, 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, OpenAPI `paths`-object keys are emitted verbatim into Refit route attributes such as `[Get("<path>")]` without escaping quotation marks or restricting characters. An attacker-influenced single-line, slash-prefixed path survives default validation without `--skip-validation` and can close the attribute string, interface, and namespace while introducing a top-level file class and reopening the generated structure to keep valid C#. A `[ModuleInitializer]` method executes attacker code when an application compiles and loads the generated assembly at startup, even without calling the generated client. The enum and default value sinks are escaped and are not the vulnerable path-emission sink. The behavior was verified on Refitter 2.0.0 with .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-3fhm-p725-h3g3> (web)
- <https://github.com/christianhelle/refitter/pull/1178> (web)
- <https://github.com/christianhelle/refitter/commit/793d2632899c2022511dfc15e30725ef69073973> (web)
- <https://github.com/christianhelle/refitter/releases/tag/2.1.2> (web)
- <https://github.com/user-attachments/files/29395228/maintainer-report.txt> (web)
- <https://github.com/user-attachments/files/29395229/make_spec.py> (web)
- <https://github.com/user-attachments/files/29395230/reproduce.sh> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63345> (advisory)
- <https://github.com/christianhelle/refitter> (package)

## Sources

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

---

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