## Refitter allows arbitrary code execution through unescaped OpenAPI paths

- 種別: advisory
- 重大度: critical
- 関連技術: dotnet
- CVE: CVE-2026-63345
- 公開日時: 2026-11-20T00:06:04.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-3fhm-p725-h3g3)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-3fhm-p725-h3g3

影響: 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…