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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-02T13:50:45.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-gcfq-8gqf-4876, GO-2026-5887
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gofiber fiber: >= 3.0.0-beta.2, < 3.3.0; < 2.52.14; before 2.52.14; from 3.0.0 before 3.3.0
- github.com/gofiber/fiber/v3 (Go): before 3.3.0
- github.com/gofiber/fiber/v2 (Go): before 2.52.14

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gofiber/fiber/pull/4260> (fix, issue-tracking, patch, web)
- <https://github.com/gofiber/fiber/pull/4495> (issue-tracking, patch, web)
- <https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396> (patch, web)
- <https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d> (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://nvd.nist.gov/vuln/detail/CVE-2026-45045> (advisory)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2026-45045](https://www.cve.org/CVERecord?id=CVE-2026-45045), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-gcfq-8gqf-4876](https://github.com/advisories/GHSA-gcfq-8gqf-4876), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5887](https://pkg.go.dev/vuln/GO-2026-5887), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-45045](https://nvd.nist.gov/vuln/detail/CVE-2026-45045), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-45045 · Whole record: https://cve.day/CVE-2026-45045.json · Rebuilt by cve.day 2026-11-25T22:59:27.412Z
