1. Home
  2. Vulnerabilities
  3. CVE-2026-63344

CVE-2026-63344

Refitter: C# source injection through OpenAPI content-type map keys

Published 30 Oct 2026 · modified 6 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 54/100

Summary

Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, content-type keys in the content maps of `requestBody/responses` are emitted verbatim into a Refit `[Headers("Accept: <ct>", "Content-Type: <ct>")]` attribute string without escaping quotation marks. A crafted content-type key in an attacker-influenced OpenAPI description survives default validation without `--skip-validation`, breaks out of the attribute string and enclosing interface and namespace, and can introduce a top-level file class while leaving valid generated C#. A `[ModuleInitializer]` method in that class executes attacker code when the generated assembly is loaded at application startup, without requiring a call to the client. The behavior was verified with Refitter 2.0.0 and .NET 8. This issue is fixed in version 2.1.2.

Affected products and versions

christianhelle (1 line(s))
christianhelle
ProductVersionsFixed inSource
refitter Versions not specified — CNA (vendor or assigner)
NuGet (1 line(s))
NuGet
ProductVersionsFixed inSource
Refitter before 2.1.2 (excluded) 2.1.2 GitHub Advisory

Fix

Upgrade — NuGet/Refitter 2.1.2official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
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 (CVSS 4.0, CNA:GitHub_M)
Weakness
CWE-94 · Injection de commandes / code

How this data is obtained and calculated