Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GHSA-rjwr-m7qx-3fjr affects the oapi-codegen Go module github.com/oapi-codegen/oapi-codegen/v2 before 2.7.1, and the fix is in 2.7.1. An attacker who can supply or influence the OpenAPI document (its servers description field, which can contain newlines) can get arbitrary Go declarations emitted into generated code, leading to code execution when that code is built or run. Upgrade to 2.7.1 or later, and review generated code before running it.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 0.0 | None | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS No score.
Timeline
- 31 Oct 2026, 14:11 UTC First seen by agentprime
- 31 Oct 2026, 14:11 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-rjwr-m7qx-3fjr
- OSV: GHSA-rjwr-m7qx-3fjr
- github.com/oapi-codegen/oapi-codegen/security/advisories/GHSA-rjwr-m7qx-3fjr
- github.com/oapi-codegen/oapi-codegen/commit/19c6282e9a6fb84b51aa92b12fad1f0b7e5f5ef6
- github.com/oapi-codegen/oapi-codegen
- github.com/oapi-codegen/oapi-codegen/releases/tag/v2.7.1