CVE-2026-119027 oapi-codegen 2.5.0 before 2.8.1 Code Injection via servers[].x-go-name Extension
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-119027?
CVE-2026-119027 is a high-severity vulnerability in oapi-codegen, published on 29 Oct 2026.
Official description
oapi-codegen 2.5.0 before 2.8.1 contains a code injection vulnerability that allows attackers to inject Go code by supplying a crafted servers[].x-go-name value emitted unescaped by the server-urls template. Attackers who control an OpenAPI document can define an injected func init() that executes when the victim builds and imports the generated package.
Weakness: CWE-94
Which versions are affected by CVE-2026-119027?
How do I fix CVE-2026-119027?
No fix has been published for CVE-2026-119027 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-119027 being exploited?
There is no known exploitation of CVE-2026-119027 in the wild and no public exploit code.
Sources
Also known as GHSA-prxp-239m-mh9f.