Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | github.com/gin-gonic/gin | < 1.9.0 | 1.9.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-gin-gonic-gin | 1.8.1-3 | — |
| Debian 13 | golang-github-gin-gonic-gin | 1.8.1-3 | — |
| Debian 12 | golang-github-gin-gonic-gin | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | golang-github-gin-gonic-gin | No fix yet | — |
| Ubuntu 26.04 LTS | golang-github-gin-gonic-gin | No fix yet | — |
| Ubuntu 25.10 | golang-github-gin-gonic-gin | No fix yet | — |
| Ubuntu 24.04 LTS | golang-github-gin-gonic-gin | No fix yet | — |
| Ubuntu 22.04 LTS | golang-github-gin-gonic-gin | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | golang-github-gin-gonic-gin | No fix yet | — |
| Ubuntu 18.04 LTS | golang-github-gin-gonic-gin | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/gin-gonic/gin | < 1.9.0 | 1.9.0 | GHSA-3vp4-m3rf-835h |