Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-119027
VULNERABILITY

CVE-2026-119027

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
7.7
Severity
HIGH
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
Oct 29, 2026 12:17
Modified
Oct 29, 2026 18:17
Last observed
Oct 29, 2026 15:00

CWE

CWE-94

References