NetSight
medium5.3

CVE-2026-45045

GoFiber Vulnerable to X-Real-IP Spoofing via Header.Add() in BalancerForward

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/gofiber/fiber/v3<= 3.2.03.3.0
gogithub.com/gofiber/fiber/v2<= 2.52.132.52.14

Affected products

VendorProductAffected versions
GofiberFiber
before 2.52.14
from 3.0.0 before 3.3.0

Weakness classification

References