Repository navigation
fix(deps): update module github.com/gofiber/fiber/v2 to v2.52.14 [security] - #92
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
deleted the
renovate/go-github.com-gofiber-fiber-v2-vulnerability
branch
August 29, 2026 21:08
renovate
Bot
force-pushed
the
renovate/go-github.com-gofiber-fiber-v2-vulnerability
branch
2 times, most recently
from
August 30, 2026 05:54
a2d7aaa to
61e74e7
Compare
renovate
Bot
force-pushed
the
renovate/go-github.com-gofiber-fiber-v2-vulnerability
branch
2 times, most recently
from
August 30, 2026 12:49
61e74e7 to
82aebeb
Compare
renovate
Bot
force-pushed
the
renovate/go-github.com-gofiber-fiber-v2-vulnerability
branch
from
August 31, 2026 22:40
82aebeb to
281798c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.52.13→v2.52.14GoFiber Vulnerable to X-Real-IP Spoofing via Header.Add() in BalancerForward
CVE-2026-45045 / GHSA-gcfq-8gqf-4876
More information
Details
Summary
The
BalancerForwardproxy helper in GoFiber usesHeader.Add()instead ofHeader.Set()when injecting theX-Real-IPheader. This appends the real client IP as a second header value rather than replacing any attacker-supplied value. Upstream servers that read the firstX-Real-IPheader (nginx, Express, most HTTP servers) use the attacker's spoofed IP for logging, rate limiting, and access control.Vulnerable Code
File:
middleware/proxy/proxy.go, lines 270-285Data Flow
X-Real-IP: 10.0.0.1(spoofed internal IP)BalancerForwardhandler executes at line 282c.Request().Header.Add("X-Real-IP", c.IP())APPENDS the real IP as a second headerX-Real-IP: 10.0.0.1ANDX-Real-IP: <real-attacker-ip>10.0.0.1for all IP-dependent logicImpact
10.0.0.0/8) can be bypassedFix
Replace
Header.Add()withHeader.Set()at line 282:Header.Set()replaces any existing header value, ensuring only the real client IP is forwarded.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
gofiber/fiber (github.com/gofiber/fiber/v2)
v2.52.14Compare Source
What's Changed
🐛 Bug Fixes
New Contributors
Full Changelog: gofiber/fiber@v2.52.13...v2.52.14
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.