CVE-2026-45045

Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward

State
Published
Severity
5.3 Medium
Published
Jul 8, 2026
Updated
Jul 9, 2026
Reserved
May 8, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-290 Authentication Bypass by Spoofing

Affected Products

ProductVersions
fibergofiber
  • >= 3.0.0-beta.2, < 3.3.0Affected
  • < 2.52.14Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.