CVE-2026-119027

HIGH CVSS 4.0: 7.7 EPSS 0.60%
Updated Oct 29, 2026
oapi-codegen
Parameter Value
CVSS 7.7 (HIGH)
Affected Versions before 2.8.1
Type CWE-94 (Code Injection)
Vendor oapi-codegen
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)