Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-45045 EUVD-2026-42351GHSA-gcfq-8gqf-4876GO-2026-5887

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

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
gofiber fiber >= 3.0.0-beta.2, < 3.3.0, < 2.52.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-gofiber-fiber +1 No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
SLES 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 openSUSE-SU-2026:21551-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gatus 5.36.0-r8 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gofiber/fiber/v2 < 2.52.14 2.52.14 GHSA-gcfq-8gqf-4876
Go github.com/gofiber/fiber/v3 < 3.3.0 3.3.0 GHSA-gcfq-8gqf-4876

Advisories 3

References