Skip to main content
VulnerabilityPublished Updated

CVE-2026-45045: V3 · GoFiber Vulnerable to X-Real-IP Spoofing via Header.Add() in BalancerForward

Affects github.com/gofiber/fiber/v3Source GCVE Database

0

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gogithub.com/gofiber/fiber/v3Affected
  • <3.3.0
Fixed in
  • 3.3.0
Gogithub.com/gofiber/fiber/v2Affected
  • <2.52.14
Fixed in
  • 2.52.14

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

Community reviews

Loading reviews…