Search Results (2 CVEs found)

CVE Vendors Products Updated CVSS v3.1
CVE-2026-119027 1 Oapi-codegen 1 Oapi-codegen 2026-10-30 7.5 High
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.
CVE-2026-119028 1 Oapi-codegen 1 Oapi-codegen 2026-10-30 8.8 High
oapi-codegen 2.0.0 before 2.8.1 contains a code injection vulnerability that allows attackers to inject Go code by supplying non-literal enum entries in integer, number, or boolean schemas. Attackers controlling an OpenAPI document can craft an enum entry that closes the const block in constants.tmpl and injects a func init(), executing code when the generated package is built and imported.