← Vulnerabilities

HighAdvisoryRubyRuby on Rails

Action Pack: Possible IP spoofing in Action Dispatch RemoteIp

Affected

PackageAffected versionsFixed in
rubygems:actionpack>= 8.1.0.beta1, < 8.1.4.18.1.4.1

Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remote_ip from Rack::Request#forwarded_for, which under Rack 3 reads the RFC 7239 Forwarded header in preference to X-Forwarded-For. When a reverse proxy appends the client address to X-Forwarded-For but passes a client-supplied Forwarded header through unchanged, request.remote_ip returns an address chosen by the client, and the IP spoofing check does not raise, because it compares only Client-Ip with the forwarded addresses. An unaut…

Read on GitHub Advisory Database

On 11/11/2026, 06:20 AM, GitHub Advisory Database published "Action Pack: Possible IP spoofing in Action Dispatch RemoteIp" (type: Advisory). Severity is "High" (high). Related technologies: Ruby, Ruby on Rails. CVE: CVE-2026-126083.