CVE-2023-26125: Versions of the package github.com/gin-gonic/gin before 1.9.0 are vulnerable to Improper Input Validation by a
CVE-2023-26125 is a medium-severity flaw (CVSS 5.6) affecting gin. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 c
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-26125?
gin: upgrade to 1.9.0. Exact commands for each OS are on this page.
Is CVE-2023-26125 being exploited?
CVE-2023-26125 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-26125 affect?
CVE-2023-26125 affects gin. Severity is medium (CVSS 5.6). 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.
How urgent is CVE-2023-26125?
Priority 45/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2023-31873 HIGH 7.8 DOWNGRADE Gin 0.7.4 allows execution of arbitrary code when a crafted file is opened, e.g., via require('child_process')
- CVE-2023-29401 MEDIUM 4.3 UPGRADE The filename parameter of the Context.FileAttachment function is not properly sanitized
- CVE-2020-36567 HIGH 7.5 UPGRADE Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to i