{"id":"CVE-2026-45045","published":"2026-07-08T19:26:26Z","modified":"2026-07-09T13:20:08Z","title":"Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00463,"percentile":0.41006,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/pull/4260","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/pull/4495","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/releases/tag/v2.52.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.2},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":[">= 3.0.0-beta.2, < 3.3.0","< 2.52.14"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T13:19:42.395861Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber/v3","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-gcfq-8gqf-4876","GO-2026-5887"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2","vulnerableRanges":["<2.52.14"],"patched":["2.52.14"],"from":["GHSA-gcfq-8gqf-4876"],"provenance":"source"}],"summary":{"text":"The Fiber Go web framework's BalancerForward proxy helper (middleware/proxy/proxy.go) injects the X-Real-IP header using Header.Add() rather than Header.Set(), so a client-supplied X-Real-IP value is forwarded upstream alongside the framework's own. An unauthenticated remote attacker who can send requests through a vulnerable Fiber proxy can spoof the client IP that upstream servers see, potentially affecting logging, rate limiting, and access control, without any user interaction or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:17Z"},"euvd":{"id":"EUVD-2026-42351","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-30246","published":"2026-05-05","fixed":"3.2.0","kev":false},{"cve":"CVE-2026-42554","published":"2026-05-11","fixed":"3.2.0","kev":false,"link":{"from":"CVE-2026-42554","to":"CVE-2026-45045","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v3","fromFixed":"3.2.0","toFixed":"3.3.0","daysApart":58},{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.52.13","toFixed":"2.52.14","daysApart":58}]}},{"cve":"CVE-2026-44332","published":"2026-07-08","fixed":"3.3.0","kev":false},{"cve":"CVE-2026-45045","published":"2026-07-08","fixed":"3.3.0","kev":false},{"cve":"CVE-2026-53624","published":"2026-07-08","fixed":"3.4.0","kev":false}],"package":"Go:github.com/gofiber/fiber/v3"}}