GHSA-h924-jfhp-9vjrSchema-to-C# injection
Default validation misses schema-derived literal/value sinks; assembly loading triggers execution without calling the client.
GHSA-h924-jfhp-9vjr reports code injection through schema names, discriminators, defaults and enums. A malicious OpenAPI document produces compiling code whose module initializer executes when its assembly loads. No fixed release is listed.
The advisory reproduces execution on two releases; it does not demonstrate every intermediate version. L3 reflects a public code-generation exploit.
The independently read 2.4.0 template still interpolates Discriminator inside the JsonPolymorphic attribute without an escaping operation at that insertion. This corroborates the advisory’s source-level concern for that release, rather than claiming a new runtime reproduction. The code also loads NJsonSchema and NSwag template assemblies. Treat generated source as a trust boundary; a successful compile does not establish safety.
Isolation is a general precaution, not a confirmed complete workaround.
GHSA-h924-jfhp-9vjrDefault validation misses schema-derived literal/value sinks; assembly loading triggers execution without calling the client.
| Product | Safe from | Note |
|---|---|---|
| Refitter | No fix | No patch listed; endpoints tested, intermediate releases not tested |
Nov 17, 2026
Maintainer publishes the advisory
We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.