CVE-2026-45045
published medium CVSS 3.1 · 5.3Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gofiber | — | fiber>= 3.0.0-beta.2, < 3.3.0 · < 2.52.14 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gofiber | fiber | >= 3.0.0-beta.2, < 3.3.0 (affected)< 2.52.14 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-290 CWE-290: Authentication Bypass by Spoofing
References
7- https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396
- https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d
- https://github.com/gofiber/fiber/pull/4260
- https://github.com/gofiber/fiber/pull/4495
- https://github.com/gofiber/fiber/releases/tag/v2.52.14
- https://github.com/gofiber/fiber/releases/tag/v3.3.0
- https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876
Provider assertions
2GitHub_M · cna
Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db502d88a4c3b2e174bab74e221246f2bc7a283f45fa2ed65eac56236cae2ea4
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record