CVE-2023-26125Gin-gonic Gin
High 7.3 No auth needed
Follow: this CVE · Gin-gonic · Gin-gonic Gin We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.3
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- May 4, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
What happens
Versions of the package github.com/gin-gonic/gin before 1.9.0 are vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the X-Forwarded-Prefix header, potentially leading to cache poisoning.
**Note:** Although this issue does not pose a significant threat on its own it can serve as an input vector for other more impactful vulnerabilities. However, successful exploitation may depend on the server configuration and whether the header is used in the application logic.
What to do
- Apply the vendor's security update for Gin.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gin-gonic/gin |
< 1.9.0 |
1.9.0 |
go get github.com/gin-gonic/gin@v1.9.0 |
Per OSV / GitHub Advisories (GHSA-3vp4-m3rf-835h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gin-gonic | gin | < 1.9.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Patch
- security.snyk.io Exploit Patch Third Party Advisory