Threat Advisory

Arbitrary Code Execution In Refitter Through Unescaped OpenAPI Values

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: Critical
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Refitter, a tool that generates .NET clients from OpenAPI descriptions. The issues affect versions prior to the corrected release and allow unsafe generated code when OpenAPI path, header parameter, or content-type values are not properly escaped. An attacker who can supply or influence an OpenAPI description may cause malicious code to run when the generated assembly is loaded. The overall risk depends on whether build pipelines process untrusted specifications.

CVE-2026-63345 (CVSS 9.3 — critical): Refitter places OpenAPI path values directly into generated client attribute strings without escaping, allowing a crafted path to break out of the intended code structure and inject executable code that runs when the generated assembly is loaded. The flaw affects applications that compile clients from attacker-controlled or attacker-influenced OpenAPI descriptions.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Refitter, a tool that generates .NET clients from OpenAPI descriptions. The issues affect versions prior to the corrected release and allow unsafe generated code when OpenAPI path, header parameter, or content-type values are not properly escaped. An attacker who can supply or influence an OpenAPI description may cause malicious code to run when the generated assembly is loaded. The overall risk depends on whether build pipelines process untrusted specifications.

CVE-2026-63345 (CVSS 9.3 — critical): Refitter places OpenAPI path values directly into generated client attribute strings without escaping, allowing a crafted path to break out of the intended code structure and inject executable code that runs when the generated assembly is loaded. The flaw affects applications that compile clients from attacker-controlled or attacker-influenced OpenAPI descriptions.[emaillocker id="1283"]

CVE-2026-63346 (CVSS 9.3 — critical): Refitter emits OpenAPI header parameter names directly into generated client attribute strings without escaping, allowing a crafted header parameter name to break out of the intended code structure and inject executable code that runs when the generated assembly is loaded. The flaw affects applications that compile clients from attacker-controlled or attacker-influenced OpenAPI descriptions.

CVE-2026-63344 (CVSS 9.3 — critical): Refitter emits OpenAPI content-type values directly into generated client attribute strings without escaping, allowing a crafted content-type value to break out of the intended code structure and inject executable code that runs when the generated assembly is loaded. The flaw affects applications that compile clients from attacker-controlled or attacker-influenced OpenAPI descriptions.

These vulnerabilities collectively present a serious risk to environments that generate .NET clients from OpenAPI descriptions that are not fully trusted. The most exposed users are developers and build systems that process specifications from external or unverified sources. They should prioritize addressing these issues in their code-generation workflows.

RECOMMENDATION:

We recommend you to update Refitter to version 2.1.2.

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu