RubySec

Providing security resources for the Ruby community

GHSA-rhww-p99c-hgj9 (puma): JRuby HTTP parser lets request headers change the request path and query string, bypassing proxy URL rules

JRuby HTTP parser lets request headers change the request path and query string, bypassing proxy URL rules

Published: November 16, 2026

SECURITY IDENTIFIERS

GEM

puma

PLATFORM

JRuby

UNAFFECTED VERSIONS

< 8.0.0

PATCHED VERSIONS

~> 8.0.4 >= 8.1.2

DESCRIPTION

Impact

On JRuby, an unauthenticated client can use request headers to change Rack env keys that Puma should build only from the request line, such as QUERY_STRING and PATH_INFO.

If an application behind a proxy, WAF, or other firewall that makes decisions based on the request line, this could be abused so that the app can receive a different path or query. Examples might include rules like: "only certain IPs can reach /admin", "URLs must be correctly signed", or "URLs must not match this pattern of a known attacker".

Examples:

  • GET /search?q=x with Query-String: &role=admin: WAF sees the query string as q=x, but Rack parses the params as {"q"=>"x, ", "role"=>"admin"}.

  • GET http://example.com/public HTTP/1.1 (absolute-form) with Request-Path: /admin: WAF or proxy sees /public, but Rack thinks PATH_INFO is /admin.

RELATED