oapi-codegen 2.5.0 before 2.8.1 Code Injection via servers[].x-go-name Extension
Exact source revision recorded 29 Oct 2026 19:28:49 UTC. It does not establish the source's current position. Latest evidence.
cve-program · CVE-2026-119027
Publishedoapi-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.
- Source published
- 29 Oct 2026 11:36:34 UTC
- Source modified
- 29 Oct 2026 17:20:19 UTC
- Observed here
- 29 Oct 2026 19:28:49 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 4.0 · 7.7 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 3.1 · 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H