International
The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 43 · Tier B

Refitter allows arbitrary code execution through unescaped OpenAPI content-type values (CVE-2026-63344)

GitHub Advisory Database ·

The Brief

  • Refitter writes OpenAPI content-type keys verbatim into Refit Headers attribute strings without escaping double quotes.
  • A crafted content-type value survives Refitter's default OpenAPI validation, enabling arbitrary code execution (CVE-2026-63344).
  • The advisory was published in the GitHub Advisory Database on 2026-11-20.

Why it matters

Teams that generate Refit clients with Refitter from OpenAPI specs they do not fully control could have arbitrary code executed through the generated code.

Who’s affected

  • Teams using Refitter to generate Refit clients
  • Anyone generating code from untrusted OpenAPI specifications

Affects Refitter. Summary 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…

Timeline

  1. Advisory published in GitHub Advisory Database

  2. GitHub Advisory Database

    Refitter allows arbitrary code execution through unescaped OpenAPI content-type values (CVE-2026-63344)

How do you feel about this?

0 Comments