User Impersonation Affecting puma package, versions >=5.5.0, <7.2.1>=8.0.0, <8.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-PUMA-17220028
  • published7 Jun 2026
  • disclosed5 Jun 2026
  • creditandy hex,Nate Berkopec

Introduced: 5 Jun 2026

NewCVE-2026-47737  (opens in a new tab)
CWE-290  (opens in a new tab)

How to fix?

Upgrade puma to version 7.2.1, 8.0.2 or higher.

Overview

puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.

Affected versions of this package are vulnerable to User Impersonation via PROXY protocol v1 spoofing. When set_remote_address proxy_protocol: :v1 is set, an attacker can spoof the source IP address by injecting additional PROXY headers between HTTP requests on the same persistent connection, causing the application to treat the injected header as authoritative and overwrite the REMOTE_ADDR value.

Workaround

This vulnerability can be avoided by setting enable_keep_alives false to disable persistent connections entirely.

CVSS Base Scores

version 4.0
version 3.1