Back to CVE records
High 7.5Published Oct 29, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects oapi-codegen. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

Free: a daily email for up to 3 products and the weekly digest. No card, no password. By continuing you agree to the Terms and Privacy Policy.

CVSS
7.5 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
VulnCheck
NVD analysis
Awaiting Analysis
Record last updated
Oct 29, 2026
First seen by InfoSec Signals
Oct 29, 2026

Affected products

Affected products
oapi-codegen oapi-codegen
oapi_codegen:oapi_codegen (from the name)
from 2.5.0 before 2.8.1
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Essential cookies only, unless you allow a Google ads cookie. See our .