CVE-2026-119027

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.
Configurations

No configuration.

History

29 Oct 2026, 12:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-29 12:17

Updated : 2026-10-29 18:17


NVD link : CVE-2026-119027

Mitre link : CVE-2026-119027

CVE.ORG link : CVE-2026-119027


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')