Skip to content

CVE-2026-45045 Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward

MediumCVSS 5.3 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Ubuntu

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.

Upgrade path

4 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/golang-github-gofiber-fiber(Ubuntu 26.10) All versions No fix listed No fix yet
ubuntu/golang-github-gofiber-fiber-v2(Ubuntu 26.10) All versions No fix listed No fix yet
gofiber github.com/gofiber/fiber < 2.52.14; = < 2.52.14; = >= 3.0.0-beta.2, < 3.3.0; >= 3.0.0, < 3.3.0 2.52.14, 3.3.0 Fixed
gofiber github.com/gofiber/fiber(Go) < 2.52.14; < 3.3.0; <= 2.52.13; <= 3.2.0 2.52.14, 3.3.0 Fixed

Affected products

ProductAffected versionsFixed in
gofiber github.com/gofiber/fiber = >= 3.0.0-beta.2, < 3.3.0 No fix listed
gofiber github.com/gofiber/fiber = < 2.52.14 No fix listed
gofiber github.com/gofiber/fiber(Go) < 3.3.0 3.3.0
gofiber github.com/gofiber/fiber(Go) < 2.52.14 2.52.14
gofiber github.com/gofiber/fiber(Go) <= 3.2.0 No fix listed
gofiber github.com/gofiber/fiber(Go) <= 2.52.13 No fix listed
ubuntu/golang-github-gofiber-fiber(Ubuntu:26.10) All versions No fix listed
ubuntu/golang-github-gofiber-fiber-v2(Ubuntu:26.10) All versions No fix listed
gofiber github.com/gofiber/fiber < 2.52.14 2.52.14
gofiber github.com/gofiber/fiber >= 3.0.0, < 3.3.0 3.3.0

References