Skip to content
CVE-2026-63344: Refitter code injection via unescaped media-type key in generated client

CVE-2026-63344: Refitter code injection via unescaped media-type key in generated client

First seen 21 Nov 2026, 08:47 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 21, 2026 at 08:48 UTC
  • •CVE-2026-63344 affects Refitter 2.1.1 and earlier; the vendor fix is in Refitter 2.1.2.
  • •A malicious OpenAPI spec with a crafted response content-type key can inject code via a [ModuleInitializer] method.
  • •Default OpenAPI validation does not block the crafted key, so no --skip-validation flag is needed.
  • •Exposure is concentrated in CI pipelines and client generation workflows that process untrusted specifications.
  • •CVSS 8.6 (high); published 2026-10-30.

A proof-of-concept exploit has been published on Sploitus for CVE-2026-63344, a flaw in the Refitter dotnet tool (MethodAttributeGenerator.cs). Refitter 2.1.1 wrote spec-derived response content-type keys into a Refit [Headers(...)] attribute string without escaping double quotes.

A crafted OpenAPI specification can break out of the attribute and enclosing namespace, inject a top-level file class with a [ModuleInitializer] method, and reopen the namespace so the generated file still compiles.

Because .NET runs module initializers at assembly load, the injected code would execute at startup of any application compiling the generated client. The article states Refitter's default OpenAPI validation accepts the crafted key, so no special flag is required.

The vendor fix in Refitter 2.1.2 adds an EscapeString helper applied at every attribute emission point. The CVE is listed with a CVSS score of 8.6 (high) and was published 2026-10-30.

The Sploitus post is the only source in this cluster; its text describes a lab harness with a marker-file payload.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-10-30
CVE-2026-63344 published
Published with CVSS 8.6 (high) per the verified CVE record.
Sploitus
2026-11-21
Exploit write-up posted on Sploitus
Sploitus republished a technical write-up with a proof-of-concept lab harness for the Refitter 2.1.1 flaw.
Sploitus

More articles in this cluster (3)

Following this threat?

Track CVE-2026-63344 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
Refitter 2.1.1 and earlier are affected when they process a malicious OpenAPI spec. Upgrade to 2.1.2, which the write-up describes as the vendor fix.
Is this being exploited?
The articles describe a public proof-of-concept but report no confirmed exploitation in the wild.
What should we do first?
Upgrade Refitter to 2.1.2 and avoid generating clients from untrusted OpenAPI specifications until patched.