CVE-2026-45045 PUBLISHED

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

Assigner: GitHub_M
Reserved: 08.05.2026 Published: 08.07.2026 Updated: 09.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS Score: 5.3

Product Status

Vendor gofiber
Product fiber
Versions
  • Version >= 3.0.0-beta.2, < 3.3.0 is affected
  • Version < 2.52.14 is affected

References

Problem Types

  • CWE-290: Authentication Bypass by Spoofing CWE