---
title: "CVE-2026-63345: Refitter allows arbitrary code execution through unescaped OpenAPI paths"
url: https://erroneo.us/security/cve/CVE-2026-63345/
description: "CVE-2026-63345 (Refitter (NuGet)): Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, OpenAPI paths-object keys…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-10-30
date_modified: 2026-11-20
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-63345"
kev: false
cvss: 8.6
epss: 0.00568
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-63345: Refitter allows arbitrary code execution through unescaped OpenAPI paths

**Signal:** Normal patch cycle. No exploitation signal; fix it in your next routine update if you are affected. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.6% , percentile 48: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 48% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Only applies if your dependency tree includes Refitter (NuGet) < 2.1.2, fixed in 2.1.2 . Check your lockfile, including transitive dependencies.

## What it is

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(" ")] 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.

## Affected packages

- NuGet `Refitter` < 2.1.2 → fixed: 2.1.2

## Affected products (CVE record)

- christianhelle refitter: < 2.1.2

## Severity

- GitHub_M CVSS 4.0: 8.6 `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: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-11-21): 0.57% probability of exploitation activity in the next 30 days; percentile 48.

## Sources

- [GitHub Advisory GHSA-3fhm-p725-h3g3](https://github.com/advisories/GHSA-3fhm-p725-h3g3)
- [CVE.org record CVE-2026-63345](https://www.cve.org/CVERecord?id=CVE-2026-63345)
- [NVD entry CVE-2026-63345](https://nvd.nist.gov/vuln/detail/CVE-2026-63345)
- [github.com](https://github.com/christianhelle/refitter/security/advisories/GHSA-3fhm-p725-h3g3)
- [github.com](https://github.com/christianhelle/refitter/pull/1178)
- [github.com](https://github.com/christianhelle/refitter/commit/793d2632899c2022511dfc15e30725ef69073973)
- [github.com](https://github.com/christianhelle/refitter/releases/tag/2.1.2)
- [github.com](https://github.com/user-attachments/files/29395228/maintainer-report.txt)
- [github.com](https://github.com/user-attachments/files/29395229/make_spec.py)
- [github.com](https://github.com/user-attachments/files/29395230/reproduce.sh)

---
Source page: https://erroneo.us/security/cve/CVE-2026-63345/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
