Live threats

All CVEs / Gin-gonic

CVE-2023-26125Gin-gonic Gin

High 7.3 No auth needed

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
Weakness (CWE)
CWE-20, CWE-77
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gin.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gin-gonicgin< 1.9.0

Official sources

References

Links published by the sources. Open them with care.