Use of Less Trusted Source Affecting actionpack package, versions >=8.1.0, <8.1.4.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIONPACK-22840003
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditluryus

Introduced: 10 Nov 2026

NewCVE-2026-126083  (opens in a new tab)
CWE-348  (opens in a new tab)

How to fix?

Upgrade actionpack to version 8.1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of Less Trusted Source via the GetIp#calculate_ip method in ActionDispatch::RemoteIp. An unauthenticated attacker can send a client-chosen Forwarded header when the reverse proxy appends the client address to X-Forwarded-For but passes Forwarded through unchanged; with Rack 3, request.remote_ip then uses the spoofed address, and the default spoofing check does not detect the conflict. If the application relies on request.remote_ip for access controls, rate limits, or auditing, the attacker can bypass those controls or falsify the client address in logs.

Notes

  • The vulnerable path requires actionpack >= 8.1 and < 8.1.4.1, in addition to Rack 3.

Workarounds

  • Configure the reverse proxy to remove or overwrite client-supplied Forwarded headers so clients cannot use that header to spoof request.remote_ip.
  • If the proxy sets X-Forwarded-For, add Rack::Request.forwarded_priority = [:x_forwarded] to an initializer. This makes Rack ignore Forwarded when resolving the client address, blocking this spoofing path. It also makes Rack ignore Forwarded when determining the request scheme, host, and port.

CVSS Base Scores

version 4.0
version 3.1