CVE-2026-119027

Source
https://cve.org/CVERecord?id=CVE-2026-119027
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119027.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-119027
Related
Published
2026-10-29T11:36:34Z
Modified
2026-10-31T02:47:37Z
Severity
  • 7.7 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
        "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119027.json"
}
References

Affected packages

Git / github.com/oapi-codegen/oapi-codegen

Affected ranges

Type
GIT
Repo
https://github.com/oapi-codegen/oapi-codegen
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "2.5.0"
                },
                {
                    "fixed": "2.8.1"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "068f1bcd16e4724c72d78d6774008a877b8297b1"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v2.8.1",
            "range": [
                {
                    "fixed": "068f1bcd16e4724c72d78d6774008a877b8297b1"
                }
            ],
            "source": "REFERENCES_TAG"
        },
        {
            "range": [
                {
                    "introduced": "2.5.0"
                },
                {
                    "fixed": "2.8.1"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}

Affected versions

v2.*
v2.5.0
v2.5.1
v2.6.0
v2.7.0
v2.8.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119027.json"