PoC Monitor
← All CVEs
CVE-2026-119027published 29 Oct 2026 11:36 UTCData: JSON · API

Oapi-codegen

oapi-codegen 2.5.0 before 2.8.1 Code Injection via servers[].x-go-name Extension

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.7high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

oapi-codegen oapi-codegen
  • >= 2.5.0, < 2.8.1

Fixed in 2.8.1

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published29 Oct 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.