Description
Fiber is an Express inspired web framework written in Go. Prior to 3.3.0 and 2.52.14, the BalancerForward proxy helper in middleware/proxy/proxy.go uses Header.Add() instead of Header.Set() when injecting X-Real-IP, allowing an attacker-supplied first X-Real-IP value to be forwarded to upstream servers for logging, rate limiting, and access control. This issue is fixed in version 3.3.0 and 2.52.14.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-290 — CWE-290: Authentication Bypass by Spoofing
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | >= 3.0.0-beta.2, < 3.3.0; < 2.52.14 |
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876 (x_refsource_CONFIRM)
- https://github.com/gofiber/fiber/pull/4260 (x_refsource_MISC)
- https://github.com/gofiber/fiber/pull/4495 (x_refsource_MISC)
- https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396 (x_refsource_MISC)
- https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d (x_refsource_MISC)
- https://github.com/gofiber/fiber/releases/tag/v2.52.14 (x_refsource_MISC)
- https://github.com/gofiber/fiber/releases/tag/v3.3.0 (x_refsource_MISC)
Generated from the official CVE List on 09 Jul 2026 07:08 UTC.