Refitter flaw allowed code execution via OpenAPI header parameter names
- Refitter
- OpenAPI
- code execution

Flaw enables injection of malicious ModuleInitializer methods
Version
2.1.2fixes the vulnerability affecting earlier releases
Refitter has a code-execution vulnerability caused by unescaped OpenAPI header parameter names, according to a GitHub advisory. The flaw affects Refitter versions before 2.1.2 and is fixed in version 2.1.2.
An application can be affected if it compiles a Refitter client generated from an OpenAPI description controlled or influenced by an attacker. The advisory says crafted header parameter names can inject code that runs when the application loads the assembly during startup.
Refitter inserts OpenAPI header parameter names directly into Refit attribute strings without escaping them. The advisory recommends updating to version 2.1.2.




