Refitter allows arbitrary code execution through unescaped OpenAPI paths
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| nuget:Refitter | < 2.1.2 | 2.1.2 |
Refitter emits each OpenAPI path (the paths-object key) verbatim into a Refit [Get(" ")] attribute string, without escaping " or restricting characters. A crafted single-line, /-prefixed path survives Refitter's default OpenAPI validation yet closes the attribute string and the enclosing interface + namespace, injects a top-level file class with a [ModuleInitializer] method, and reopens a namespace + interface so the file stays valid. .NET runs [ModuleInitializer] methods when the generated ass…
Read on GitHub Advisory Database
On 11/20/2026, 09:06 AM, GitHub Advisory Database published "Refitter allows arbitrary code execution through unescaped OpenAPI paths" (type: Advisory). Severity is "Critical" (critical). Related technologies: .NET / C#. CVE: CVE-2026-63345.