Intel

AIKIDO-2026-896943

actionpack is vulnerable to IP Spoofing

GHSA-2gff-2mmg-m73pPublished 3 days ago
November 4, 2026

74

CVE Score

High

IP Spoofing

Are you affected? Scan for Free

TL;DR

ActionDispatch::RemoteIp in actionpack takes request.remote_ip from Rack's forwarded_for, which prefers a client-supplied Forwarded header over X-Forwarded-For. When a proxy appends the real client address to X-Forwarded-For but leaves Forwarded unchanged, the request reports an address chosen by the client and the spoofing check does not raise. IP allow lists, rate limits, and logs that trust request.remote_ip then use that address. The fix raises when both headers are present and their first untrusted client addresses differ.

How do I fix this?

Upgrade the actionpack library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a proxy forwards a client-supplied Forwarded header while the application trusts request.remote_ip.

Package

Versions

8.1.0 - 8.1.4

Fixed in 8.1.4.1

Background info

actionpack is vulnerable to IP Spoofing in versions 8.1.0 - 8.1.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea