CVE-2026-45045
MEDIUM 5.3CVSS 3.1GoFiber Vulnerable to X-Real-IP Spoofing via Header.Add() in BalancerForward
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-290
- Also known as
- GHSA-gcfq-8gqf-4876GO-2026-5887
- Sources
- NVDJSONOSV GHSA-gcfq-8gqf-4876JSONOSV GO-2026-5887JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gofiber | fibercpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* |
< 2.52.14 | 2.52.14 |
| NVD | gofiber | fibercpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* |
>= 3.0.0, < 3.3.0 | 3.3.0 |
| OSV | Go | github.com/gofiber/fiber/v3 | < 3.3.0 | 3.3.0 |
| OSV | Go | github.com/gofiber/fiber/v2 | < 2.52.14 | 2.52.14 |
References
- https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396 · Patch, WEB
- https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d · Patch, WEB
- https://github.com/gofiber/fiber/pull/4260 · Issue Tracking, Patch, WEB, FIX
- https://github.com/gofiber/fiber/pull/4495 · Issue Tracking, Patch, WEB
- https://github.com/gofiber/fiber/releases/tag/v2.52.14 · Release Notes, WEB
- https://github.com/gofiber/fiber/releases/tag/v3.3.0 · Release Notes, WEB
- https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876 · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-45045 · ADVISORY
- https://github.com/gofiber/fiber · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Jul 2026)