## Refitter allows arbitrary code execution through unescaped OpenAPI content-type values

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

影響: nuget:Refitter < 2.1.2 → 2.1.2
Refitter emits the spec's content-type key (content map key in requestBody/responses) verbatim into a Refit [Headers("Accept: ", "Content-Type: ")] attribute string without escaping ". A crafted value survives Refitter's default OpenAPI validation, breaks out of the attribute and the enclosing interface + namespace, injects a top-level file class with a [ModuleInitializer] method, and reopens so the file stays valid. .NET runs [ModuleInitializer] methods at assembly load, so the attacker's code…