CVE-2026-119027: oapi-codegen (High, CVSS 7.7)

Remote Attacker
CVE-2026-119027Highoapi-codegen
CVSS
7.7 High (v4.0)
Exploited in the wild
Not on CISA’s KEV list
Public exploit
None reported in public exploit databases
Weakness
CWE-94
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Published
Oct 29, 2026

What it is

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.

Description from the National Vulnerability Database.

What to do

Check whether you run oapi-codegen, then apply the vendor’s fix or mitigation from the advisories below.

Sources: NVD, FIRST EPSS, CISA KEV, and public exploit databases (availability only). ThreatRoundup reports whether public exploit code exists but never links to it: fake proof-of-concepts that infect security researchers are common. This page updates automatically.