CVE-2026-45045: V3 · GoFiber Vulnerable to X-Real-IP Spoofing via Header.Add() in BalancerForward
Affects github.com/gofiber/fiber/v3Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.3.0 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.3.0, 2.52.14
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/gofiber/fiber/v3 to 3.3.0; github.com/gofiber/fiber/v2 to 2.52.14.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/gofiber/fiber/v3 | Affected
| Fixed in
|
| Gogithub.com/gofiber/fiber/v2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should consider implementing additional validation or filtering of the X-Real-IP header at the application or proxy level to prevent spoofing.
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.
References
- github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876 (opens in a new tab)
- github.com/gofiber/fiber/pull/4260 (opens in a new tab)
- github.com/gofiber/fiber/pull/4495 (opens in a new tab)
- github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396 (opens in a new tab)
- github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d (opens in a new tab)
- github.com/gofiber/fiber/releases/tag/v2.52.14 (opens in a new tab)
- github.com/gofiber/fiber/releases/tag/v3.3.0 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-45045 (opens in a new tab)
- github.com/gofiber/fiber (opens in a new tab)