CVE-2026-126083: Action Pack: Possible IP spoofing in Action Dispatch RemoteIp
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-2gff-2mmg-m73p
Summary
A flaw in Action Dispatch RemoteIp allows unauthenticated attackers to spoof their IP address by leveraging discrepancies between the Forwarded and X-Forwarded-For headers. Rails developers running versions 8.1.0 through 8.1.4.1 should update their packages or adjust proxy configurations.
Who is affected
The vulnerability affects Rails 8.1 applications using Rack 3 when positioned behind a reverse proxy that permits user-supplied Forwarded headers. Attackers can bypass IP-based access controls, circumvent rate limits, and falsify client identity in logs by providing malicious header inputs.
Exploitability
The vulnerability carries a high severity score of 7.4, reflecting the potential for bypasses in security controls. While the attack is network-exploitable, it requires specific proxy configuration conditions, and active exploitation is currently not documented via CISA KEV.
Remediation
- Upgrade the actionpack gem to version 8.1.4.1 or later.
- Configure reverse proxies to explicitly strip or overwrite the client-supplied Forwarded header.
- Apply the workaround by setting Rack::Request.forwarded_priority = [:x_forwarded] in an initializer if immediate upgrading is not possible.
How to check your project
- Check the Gemfile.lock file to identify if actionpack is within the 8.1.0 to 8.1.4 range.
- Inspect the application environment to verify if it is running on Rails 8.1+ with Rack 3.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update actionpack |
CVSS 3.0 vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | None |
FAQ
Does this vulnerability affect applications running on Rack 2.2?
No, applications running on Rack 2.2 are not affected because the legacy behavior only reads the X-Forwarded-For header.
Is the fix sufficient if my proxy does not set X-Forwarded-For?
No, the fix specifically validates discrepancies when both headers are present; if only the Forwarded header is passed, the application remains exposed and proxy-level configuration is required.
What is the primary security consequence of this IP spoofing?
Attackers can bypass security features that rely on IP-based authentication, rate limiting, or audit logging, effectively masquerading as a trusted or different IP source.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-2gff-2mmg-m73p
- WEB https://github.com/rails/rails/commit/2a01a5ac521184419d9a92fa2c25e102e68cd227
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/GHSA-2gff-2mmg-m73p.yml
Source records: GHSA-2gff-2mmg-m73p (OSV.dev) · EPSS by FIRST, 2026-11-21.