CVE-2026-119028
Last modified
CVE-2026-119028 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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..
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| oapi-codegen | oapi-codegen | >= 2.0.0, < 2.8.1 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-119028?
How severe is CVE-2026-119028?
How do I fix CVE-2026-119028?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-1190A flaw was found in Keycloak's SAML brokering functionality.…3.1
- CVE-2026-11900The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPr…4.3
- CVE-2026-11901The WP Hotel Booking plugin for WordPress is vulnerable to I…5.3
- CVE-2026-11902Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-119025open 7.2.0 before 11.0.0 contains an OS command injection vu…7.5
- CVE-2026-119027oapi-codegen 2.5.0 before 2.8.1 contains a code injection vu…7.5
- CVE-2026-11903Improper neutralization of input during web page generation …5.4
- CVE-2026-119036Business::GoCardless versions before 1.01 for Perl allow mem…
- CVE-2026-119037Business::GoCardless versions before 1.01 for Perl accept fo…
- CVE-2026-119038Business::GoCardless versions before 1.01 for Perl complete …
- CVE-2026-11904IBM Verify Identity Access 11.0 through 11.0.2 and IBM Secur…5.3
- CVE-2026-119048JeeSite 5.11.0 through 5.19.1 contains an insecure direct ob…4.2
Are you affected by CVE-2026-119028?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
