CVE-2026-119027

    Dashboard / Vulnerabilities / CVE-2026-119027

    CVE-2026-119027

    Published: 29 Oct 2026Last Modified: 31 Oct 2026

    Summary: oapi-codegen 2.5.0 before 2.8.1 Code Injection via servers[].x-go-name Extension

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 13eea66b2bf673f56fc270af5699830187d01daf

    Affected versions

    v2.8.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2026-119027 | CVE-DB