Skip to main content
← All vulnerabilities
CVE-2026-45045GO-2026-5887GHSA-GCFQ-8GQF-4876

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.3.0, 2.52.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gofiber fiber

    From 3.0.0-beta.2 · fixed in 3.3.0; fixed in 2.52.14

  • github.com/gofiber/fiber/v3Go

    fixed in 3.3.0

  • github.com/gofiber/fiber/v2Go

    fixed in 2.52.14

References 7

GitHub · gofiber/fiber