Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 16, 2023

This PR contains the following updates:

Package Change Age Confidence
rack (changelog) '2.1.4.1' -> '2.2.20' age confidence

GitHub Vulnerability Alerts

CVE-2022-44570

There is a possible denial of service vulnerability in the Range header parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-44570.

Versions Affected: >= 1.5.0 Not affected: None. Fixed Versions: 2.0.9.2, 2.1.4.2, 2.2.6.2, 3.0.0.1
Impact

Carefully crafted input can cause the Range header parsing component in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. Any applications that deal with Range requests (such as streaming applications, or applications that serve files) may be impacted.
Releases

The fixed releases are available at the normal locations.
Workarounds

There are no feasible workarounds for this issue.
Patches

To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

2-0-Fix-ReDoS-in-Rack-Utils.get_byte_ranges.patch - Patch for 2.0 series
2-1-Fix-ReDoS-in-Rack-Utils.get_byte_ranges.patch - Patch for 2.1 series
2-2-Fix-ReDoS-in-Rack-Utils.get_byte_ranges.patch - Patch for 2.2 series
3-0-Fix-ReDoS-in-Rack-Utils.get_byte_ranges.patch - Patch for 3.0 series

CVE-2022-44572

There is a denial of service vulnerability in the multipart parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-44572.

Versions Affected: >= 2.0.0 Not affected: None. Fixed Versions: 2.0.9.2, 2.1.4.2, 2.2.6.1, 3.0.0.1
Impact

Carefully crafted input can cause RFC2183 multipart boundary parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. Any applications that parse multipart posts using Rack (virtually all Rails applications) are impacted.
Releases

The fixed releases are available at the normal locations.
Workarounds

There are no feasible workarounds for this issue.
Patches

To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

2-0-Forbid-control-characters-in-attributes.patch - Patch for 2.0 series
2-1-Forbid-control-characters-in-attributes.patch - Patch for 2.1 series
2-2-Forbid-control-characters-in-attributes.patch - Patch for 2.2 series
3-0-Forbid-control-characters-in-attributes.patch - Patch for 3.0 series

CVE-2022-44571

There is a denial of service vulnerability in the Content-Disposition parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-44571.

Versions Affected: >= 2.0.0 Not affected: None. Fixed Versions: 2.0.9.2, 2.1.4.2, 2.2.6.1, 3.0.0.1
Impact

Carefully crafted input can cause Content-Disposition header parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is used typically used in multipart parsing. Any applications that parse multipart posts using Rack (virtually all Rails applications) are impacted.
Releases

The fixed releases are available at the normal locations.
Workarounds

There are no feasible workarounds for this issue.
Patches

To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

2-0-Fix-ReDoS-vulnerability-in-multipart-parser - Patch for 2.0 series
2-1-Fix-ReDoS-vulnerability-in-multipart-parser - Patch for 2.1 series
2-2-Fix-ReDoS-vulnerability-in-multipart-parser - Patch for 2.2 series
3-0-Fix-ReDoS-vulnerability-in-multipart-parser - Patch for 3.0 series

CVE-2023-27530

There is a possible DoS vulnerability in the Multipart MIME parsing code in Rack. This vulnerability has been assigned the CVE identifier CVE-2023-27530.

Versions Affected: All. Not affected: None Fixed Versions: 3.0.4.2, 2.2.6.3, 2.1.4.3, 2.0.9.3

Impact

The Multipart MIME parsing code in Rack limits the number of file parts, but does not limit the total number of parts that can be uploaded. Carefully crafted requests can abuse this and cause multipart parsing to take longer than expected.

All users running an affected release should either upgrade or use one of the workarounds immediately.

Workarounds

A proxy can be configured to limit the POST body size which will mitigate this issue.

CVE-2023-27539

There is a denial of service vulnerability in the header parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2023-27539.

Versions Affected: >= 2.0.0 Not affected: None. Fixed Versions: 2.2.6.4, 3.0.6.1

Impact

Carefully crafted input can cause header parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. Any applications that parse headers using Rack (virtually all Rails applications) are impacted.

Workarounds

Setting Regexp.timeout in Ruby 3.2 is a possible workaround.

CVE-2024-26146

Possible Denial of Service Vulnerability in Rack Header Parsing

There is a possible denial of service vulnerability in the header parsing
routines in Rack. This vulnerability has been assigned the CVE identifier
CVE-2024-26146.

Versions Affected: All.
Not affected: None
Fixed Versions: 2.0.9.4, 2.1.4.4, 2.2.8.1, 3.0.9.1

Impact

Carefully crafted headers can cause header parsing in Rack to take longer than
expected resulting in a possible denial of service issue. Accept and Forwarded
headers are impacted.

Ruby 3.2 has mitigations for this problem, so Rack applications using Ruby 3.2
or newer are unaffected.

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Patches

To aid users who aren't able to upgrade immediately we have provided patches for
the two supported release series. They are in git-am format and consist of a
single changeset.

  • 2-0-header-redos.patch - Patch for 2.0 series
  • 2-1-header-redos.patch - Patch for 2.1 series
  • 2-2-header-redos.patch - Patch for 2.2 series
  • 3-0-header-redos.patch - Patch for 3.0 series

Credits

Thanks to svalkanov for reporting this and
providing patches!

CVE-2024-26141

Possible DoS Vulnerability with Range Header in Rack

There is a possible DoS vulnerability relating to the Range request header in
Rack. This vulnerability has been assigned the CVE identifier CVE-2024-26141.

Versions Affected: >= 1.3.0.
Not affected: < 1.3.0
Fixed Versions: 3.0.9.1, 2.2.8.1

Impact

Carefully crafted Range headers can cause a server to respond with an
unexpectedly large response. Responding with such large responses could lead
to a denial of service issue.

Vulnerable applications will use the Rack::File middleware or the
Rack::Utils.byte_ranges methods (this includes Rails applications).

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Patches

To aid users who aren't able to upgrade immediately we have provided patches for
the two supported release series. They are in git-am format and consist of a
single changeset.

  • 3-0-range.patch - Patch for 3.0 series
  • 2-2-range.patch - Patch for 2.2 series

Credits

Thank you ooooooo_q for the report and
patch

CVE-2024-25126

Summary

module Rack
  class MediaType
    SPLIT_PATTERN = %r{\s*[;,]\s*}

The above regexp is subject to ReDos. 50K blank characters as a prefix to the header will take over 10s to split.

PoC

A simple HTTP request with lots of blank characters in the content-type header:

request["Content-Type"] = (" " * 50_000) + "a,"

Impact

It's a very easy to craft ReDoS. Like all ReDoS the impact is debatable.

CVE-2025-25184

Summary

Rack::CommonLogger can be exploited by crafting input that includes newline characters to manipulate log entries. The supplied proof-of-concept demonstrates injecting malicious content into logs.

Details

When a user provides the authorization credentials via Rack::Auth::Basic, if success, the username will be put in env['REMOTE_USER'] and later be used by Rack::CommonLogger for logging purposes.

The issue occurs when a server intentionally or unintentionally allows a user creation with the username contain CRLF and white space characters, or the server just want to log every login attempts. If an attacker enters a username with CRLF character, the logger will log the malicious username with CRLF characters into the logfile.

Impact

Attackers can break log formats or insert fraudulent entries, potentially obscuring real activity or injecting malicious data into log files.

Mitigation

  • Update to the latest version of Rack.

CVE-2025-27111

Summary

Rack::Sendfile can be exploited by crafting input that includes newline characters to manipulate log entries.

Details

The Rack::Sendfile middleware logs unsanitized header values from the X-Sendfile-Type header. An attacker can exploit this by injecting escape sequences (such as newline characters) into the header, resulting in log injection.

Impact

This vulnerability can distort log files, obscure attack traces, and complicate security auditing.

Mitigation

  • Update to the latest version of Rack, or
  • Remove usage of Rack::Sendfile.

CVE-2025-27610

Summary

Rack::Static can serve files under the specified root: even if urls: are provided, which may expose other files under the specified root: unexpectedly.

Details

The vulnerability occurs because Rack::Static does not properly sanitize user-supplied paths before serving files. Specifically, encoded path traversal sequences are not correctly validated, allowing attackers to access files outside the designated static file directory.

Impact

By exploiting this vulnerability, an attacker can gain access to all files under the specified root: directory, provided they are able to determine then path of the file.

Mitigation

  • Update to the latest version of Rack, or
  • Remove usage of Rack::Static, or
  • Ensure that root: points at a directory path which only contains files which should be accessed publicly.

It is likely that a CDN or similar static file server would also mitigate the issue.

CVE-2025-46727

Summary

Rack::QueryParser parses query strings and application/x-www-form-urlencoded bodies into Ruby data structures without imposing any limit on the number of parameters, allowing attackers to send requests with extremely large numbers of parameters.

Details

The vulnerability arises because Rack::QueryParser iterates over each &-separated key-value pair and adds it to a Hash without enforcing an upper bound on the total number of parameters. This allows an attacker to send a single request containing hundreds of thousands (or more) of parameters, which consumes excessive memory and CPU during parsing.

Impact

An attacker can trigger denial of service by sending specifically crafted HTTP requests, which can cause memory exhaustion or pin CPU resources, stalling or crashing the Rack server. This results in full service disruption until the affected worker is restarted.

Mitigation

  • Update to a version of Rack that limits the number of parameters parsed, or
  • Use middleware to enforce a maximum query string size or parameter count, or
  • Employ a reverse proxy (such as Nginx) to limit request sizes and reject oversized query strings or bodies.

Limiting request body sizes and query string lengths at the web server or CDN level is an effective mitigation.

CVE-2025-32441

Summary

When using the Rack::Session::Pool middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session.

Details

Rack session middleware prepares the session at the beginning of request, then saves is back to the store with possible changes applied by host rack application. This way the session becomes to be a subject of race conditions in general sense over concurrent rack requests.

Impact

When using the Rack::Session::Pool middleware, and provided the attacker can acquire a session cookie (already a major issue), the session may be restored if the attacker can trigger a long running request (within that same session) adjacent to the user logging out, in order to retain illicit access even after a user has attempted to logout.

Mitigation

  • Update to the latest version of rack, or
  • Ensure your application invalidates sessions atomically by marking them as logged out e.g., using a logged_out flag, instead of deleting them, and check this flag on every request to prevent reuse, or
  • Implement a custom session store that tracks session invalidation timestamps and refuses to accept session data if the session was invalidated after the request began.

Related

As this code was moved to rack-session in Rack 3+, see GHSA-9j94-67jr-4cqj for the equivalent advisory in rack-session (affecting Rack 3+ only).

CVE-2025-59830

Summary

Rack::QueryParser in version < 2.2.18 enforces its params_limit only for parameters separated by &, while still splitting on both & and ;. As a result, attackers could use ; separators to bypass the parameter count limit and submit more parameters than intended.

Details

The issue arises because Rack::QueryParser#check_query_string counts only & characters when determining the number of parameters, but the default separator regex DEFAULT_SEP = /[&;] */n splits on both & and ;. This mismatch means that queries using ; separators were not included in the parameter count, allowing params_limit to be bypassed.

Other safeguards (bytesize_limit and key_space_limit) still applied, but did not prevent this particular bypass.

Impact

Applications or middleware that directly invoke Rack::QueryParser with its default configuration (no explicit delimiter) could be exposed to increased CPU and memory consumption. This can be abused as a limited denial-of-service vector.

Rack::Request, the primary entry point for typical Rack applications, uses QueryParser in a safe way and does not appear vulnerable by default. As such, the severity is considered low, with the impact limited to edge cases where QueryParser is used directly.

Mitigation

  • Upgrade to a patched version of Rack where both & and ; are counted consistently toward params_limit.
  • If upgrading is not immediately possible, configure QueryParser with an explicit delimiter (e.g., &) to avoid the mismatch.
  • As a general precaution, enforce query string and request size limits at the web server or proxy layer (e.g., Nginx, Apache, or a CDN) to mitigate excessive parsing overhead.

CVE-2025-61770

Summary

Rack::Multipart::Parser buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions.

Details

While searching for the first boundary, the parser appends incoming data into a shared buffer (@sbuf.concat(content)) and scans for the boundary pattern:

@&#8203;sbuf.scan_until(@&#8203;body_regex)

If the boundary is not yet found, the parser continues buffering data indefinitely. There is no trimming or size cap on the preamble, allowing attackers to send arbitrary amounts of data before the first boundary.

Impact

Remote attackers can trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection.

Mitigation

  • Upgrade: Use a patched version of Rack that enforces a preamble size limit (e.g., 16 KiB) or discards preamble data entirely per RFC 2046 § 5.1.1.
  • Workarounds:
    • Limit total request body size at the proxy or web server level.
    • Monitor memory and set per-process limits to prevent OOM conditions.

CVE-2025-61772

Summary

Rack::Multipart::Parser can accumulate unbounded data when a multipart part’s header block never terminates with the required blank line (CRLFCRLF). The parser keeps appending incoming bytes to memory without a size cap, allowing a remote attacker to exhaust memory and cause a denial of service (DoS).

Details

While reading multipart headers, the parser waits for CRLFCRLF using:

@&#8203;sbuf.scan_until(/(.*?\r\n)\r\n/m)

If the terminator never appears, it continues appending data (@sbuf.concat(content)) indefinitely. There is no limit on accumulated header bytes, so a single malformed part can consume memory proportional to the request body size.

Impact

Attackers can send incomplete multipart headers to trigger high memory use, leading to process termination (OOM) or severe slowdown. The effect scales with request size limits and concurrency. All applications handling multipart uploads may be affected.

Mitigation

  • Upgrade to a patched Rack version that caps per-part header size (e.g., 64 KiB).
  • Until then, restrict maximum request sizes at the proxy or web server layer (e.g., Nginx client_max_body_size).

CVE-2025-61771

Summary

Rack::Multipart::Parser stores non-file form fields (parts without a filename) entirely in memory as Ruby String objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS).

Details

During multipart parsing, file parts are streamed to temporary files, but non-file parts are buffered into memory:

body = String.new  # non-file → in-RAM buffer
@&#8203;mime_parts[mime_index].body << content

There is no size limit on these in-memory buffers. As a result, any large text field—while technically valid—will be loaded fully into process memory before being added to params.

Impact

Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected.

Mitigation

  • Upgrade: Use a patched version of Rack that enforces a reasonable size cap for non-file fields (e.g., 2 MiB).
  • Workarounds:
    • Restrict maximum request body size at the web-server or proxy layer (e.g., Nginx client_max_body_size).
    • Validate and reject unusually large form fields at the application level.

CVE-2025-61780

Summary

A possible information disclosure vulnerability existed in Rack::Sendfile when running behind a proxy that supports x-sendfile headers (such as Nginx). Specially crafted headers could cause Rack::Sendfile to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions.

Details

When Rack::Sendfile received untrusted x-sendfile-type or x-accel-mapping headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a "redirect" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls.

An attacker could exploit this by:

  1. Setting a crafted x-sendfile-type: x-accel-redirect header.
  2. Setting a crafted x-accel-mapping header.
  3. Requesting a path that qualifies for proxy-based acceleration.

Impact

Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes.

This issue only affected systems meeting all of the following conditions:

  • The application used Rack::Sendfile with a proxy that supports x-accel-redirect (e.g., Nginx).
  • The proxy did not always set or remove the x-sendfile-type and x-accel-mapping headers.
  • The application exposed an endpoint that returned a body responding to .to_path.

Mitigation

  • Upgrade to a fixed version of Rack which requires explicit configuration to enable x-accel-redirect:

    use Rack::Sendfile, "x-accel-redirect"
  • Alternatively, configure the proxy to always set or strip the headers (you should be doing this!):

    proxy_set_header x-sendfile-type x-accel-redirect;
    proxy_set_header x-accel-mapping /var/www/=/files/;
  • Or in Rails applications, disable sendfile completely:

    config.action_dispatch.x_sendfile_header = nil

CVE-2025-61919

Summary

Rack::Request#POST reads the entire request body into memory for Content-Type: application/x-www-form-urlencoded, calling rack.input.read(nil) without enforcing a length or cap. Large request bodies can therefore be buffered completely into process memory before parsing, leading to denial of service (DoS) through memory exhaustion.

Details

When handling non-multipart form submissions, Rack’s request parser performs:

form_vars = get_header(RACK_INPUT).read

Since read is called with no argument, the entire request body is loaded into a Ruby String. This occurs before query parameter parsing or enforcement of any params_limit. As a result, Rack applications without an upstream body-size limit can experience unbounded memory allocation proportional to request size.

Impact

Attackers can send large application/x-www-form-urlencoded bodies to consume process memory, causing slowdowns or termination by the operating system (OOM). The effect scales linearly with request size and concurrency. Even with parsing limits configured, the issue occurs before those limits are enforced.

Mitigation

  • Update to a patched version of Rack that enforces form parameter limits using query_parser.bytesize_limit, preventing unbounded reads of application/x-www-form-urlencoded bodies.
  • Enforce strict maximum body size at the proxy or web server layer (e.g., Nginx client_max_body_size, Apache LimitRequestBody).

Release Notes

rack/rack (rack)

v2.2.20

Compare Source

v2.2.19

Compare Source

Security
  • CVE-2025-61772 Multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)
  • CVE-2025-61771 Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)
  • CVE-2025-61770 Unbounded multipart preamble buffering enables DoS (memory exhaustion)

v2.2.18

Compare Source

Security
  • CVE-2025-59830 Unbounded parameter parsing in Rack::QueryParser can lead to memory exhaustion via semicolon-separated parameters.

v2.2.17

Compare Source

v2.2.16

Compare Source

v2.2.15

Compare Source

v2.2.14

Compare Source

⚠️ This release includes a security fix that may cause certain routes in previously working applications to fail if query parameters exceed 4,096 in count or 4 MB in total size. See https://redirect.github.com/rack/rack/discussions/2356 for more details.

Security
  • CVE-2025-46727 Unbounded parameter parsing in Rack::QueryParser can lead to memory exhaustion.

v2.2.13

Compare Source

Security

v2.2.12

Compare Source

Security

v2.2.11

Compare Source

Security

v2.2.10

Compare Source

v2.2.9

Compare Source

v2.2.8.1

Compare Source

What's Changed

Full Changelog: rack/rack@v2.2.8...v2.2.8.1

v2.2.8

Compare Source

v2.2.7

Compare Source

v2.2.6.4

Compare Source

v2.2.6.3

Compare Source

  • [CVE-2023-27530] Introduce multipart_total_part_limit to limit total parts

v2.2.6.2

Compare Source

v2.2.6.1

Compare Source

v2.2.6

Compare Source

v2.2.5

Compare Source

Fixed

v2.2.4

Compare Source

v2.2.3.1

Compare Source

Security

v2.2.3

Compare Source

Security

v2.2.2

Compare Source

Fixed

v2.2.1

Compare Source

Security
  • CVE-2025-61772 Multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)
  • CVE-2025-61771 Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)
  • CVE-2025-61770 Unbounded multipart preamble buffering enables DoS (memory exhaustion)

v2.2.0

Compare Source

SPEC Changes
  • rack.session request environment entry must respond to to_hash and return unfrozen Hash. ([@​jeremyevans])
  • Request environment cannot be frozen. ([@​jeremyevans])
  • CGI values in the request environment with non-ASCII characters must use ASCII-8BIT encoding. ([@​jeremyevans])
  • Improve SPEC/lint relating to SERVER_NAME, SERVER_PORT and HTTP_HOST. (#​1561, [@​ioquatix])
Added
  • rackup supports multiple -r options and will require all arguments. ([@​jeremyevans])
  • Server supports an array of paths to require for the :require option. (@​khotta)
  • Files supports multipart range requests. (@​fatkodima)
  • Multipart::UploadedFile supports an IO-like object instead of using the filesystem, using :filename and :io options. ([@​jeremyevans])
  • Multipart::UploadedFile supports keyword arguments :path, :content_type, and :binary in addition to positional arguments. ([@​jeremyevans])
  • Static supports a :cascade option for calling the app if there is no matching file. ([@​jeremyevans])
  • Session::Abstract::SessionHash#dig. ([@​jeremyevans])
  • Response.[] and MockResponse.[] for creating instances using status, headers, and body. ([@​ioquatix])
  • Convenient cache and content type methods for Rack::Response. (#​1555, [@​ioquatix])
Changed
  • Request#params no longer rescues EOFError. ([@​jeremyevans])
  • Directory uses a streaming approach, significantly improving time to first byte for large directories. ([@​jeremyevans])
  • Directory no longer includes a Parent directory link in the root directory index. ([@​jeremyevans])
  • QueryParser#parse_nested_query uses original backtrace when reraising exception with new class. ([@​jeremyevans])
  • ConditionalGet follows RFC 7232 precedence if both If-None-Match and If-Modified-Since headers are provided. ([@​jeremyevans])
  • .ru files supports the frozen-string-literal magic comment. (@​eregon)
  • Rely on autoload to load constants instead of requiring internal files, make sure to require 'rack' and not just 'rack/...'. ([@​jeremyevans])
  • BREAKING CHANGE: Etag will continue sending ETag even if the response should not be cached. Streaming no longer works without a workaround, see #​1619. (@​henm)
  • Request#host_with_port no longer includes a colon for a missing or empty port. (@​AlexWayfer)
  • All handlers uses keywords arguments instead of an options hash argument. ([@​ioquatix])
  • Files handling of range requests no longer return a body that supports to_path, to ensure range requests are handled correctly. ([@​jeremyevans])
  • Multipart::Generator only includes Content-Length for files with paths, and Content-Disposition filename if the UploadedFile instance has one. ([@​jeremyevans])
  • Request#ssl? is true for the wss scheme (secure websockets). ([@​jeremyevans])
  • Rack::HeaderHash is memoized by default. (#​1549, [@​ioquatix])
  • Rack::Directory allow directory traversal inside root directory. (#​1417, @​ThomasSevestre)
  • Sort encodings by server preference. (#​1184, [@​ioquatix], @​wjordan)
  • Rework host/hostname/authority implementation in Rack::Request. #host and #host_with_port have been changed to correctly return IPv6 addresses formatted with square brackets, as defined by RFC3986. (#​1561, [@​ioquatix])
  • Rack::Builder parsing options on first #\ line is deprecated. (#​1574, [@​ioquatix])
Removed
  • Directory#path as it was not used and always returned nil. ([@​jeremyevans])
  • BodyProxy#each as it was only needed to work around a bug in Ruby <1.9.3. ([@​jeremyevans])
  • URLMap::INFINITY and URLMap::NEGATIVE_INFINITY, in favor of Float::INFINITY. (@​ch1c0t)
  • Deprecation of Rack::File. It will be deprecated again in rack 2.2 or 3.0. (@​rafaelfranca)
  • Support for Ruby 2.2 as it is well past EOL. ([@​ioquatix])
  • Remove Rack::Files#response_body as the implementation was broken. (#​1153, [@​ioquatix])
  • Remove SERVER_ADDR which was never part of the original SPEC. (#​1573, [@​ioquatix])
Fixed
  • Directory correctly handles root paths containing glob metacharacters. ([@​jeremyevans])
  • Cascade uses a new response object for each call if initialized with no apps. ([@​jeremyevans])
  • BodyProxy correctly delegates keyword arguments to the body object on Ruby 2.7+. ([@​jeremyevans])
  • BodyProxy#method correctly handles methods delegated to the body object. ([@​jeremyevans])
  • Request#host and Request#host_with_port handle IPv6 addresses correctly. (@​AlexWayfer)
  • Lint checks when response hijacking that rack.hijack is called with a valid object. ([@​jeremyevans])
  • Response#write correctly updates Content-Length if initialized with a body. ([@​jeremyevans])
  • CommonLogger includes SCRIPT_NAME when logging. (@​Erol)
  • Utils.parse_nested_query correctly handles empty queries, using an empty instance of the params class instead of a hash. ([@​jeremyevans])
  • Directory correctly escapes paths in links. (@​yous)
  • Request#delete_cookie and related Utils methods handle :domain and :path options in same call. ([@​jeremyevans])
  • Request#delete_cookie and related Utils methods do an exact match on :domain and :path options. ([@​jeremyevans])
  • Static no longer adds headers when a gzipped file request has a 304 response. (@​chooh)
  • ContentLength sets Content-Length response header even for bodies not responding to to_ary. ([@​jeremyevans])
  • Thin handler supports options passed directly to Thin::Controllers::Controller. ([@​jeremyevans])
  • WEBrick handler no longer ignores :BindAddress option. ([@​jeremyevans])
  • ShowExceptions handles invalid POST data. ([@​jeremyevans])
  • Basic authentication requires a password, even if the password is empty. ([@​jeremyevans])
  • Lint checks response is array with 3 elements, per SPEC. ([@​jeremyevans])
  • Support for using :SSLEnable option when using WEBrick handler. (Gregor Melhorn)
  • Close response body after buffering it when buffering. ([@​ioquatix])
  • Only accept ; as delimiter when parsing cookies. (@​mrageh)
  • Utils::HeaderHash#clear clears the name mapping as well. (@​raxoft)
  • Support for passing nil Rack::Files.new, which notably fixes Rails' current ActiveStorage::FileServer implementation. ([@​ioquatix])
Documentation

v2.1.4.4

Compare Source

What's Changed

Full Changelog: rack/rack@v2.1.4.3...v2.1.4.4

v2.1.4.3

Compare Source

v2.1.4.2

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@yegor256
Copy link
Owner

@rultor please, try to merge

@rultor
Copy link
Collaborator

rultor commented Mar 16, 2023

@rultor please, try to merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Mar 16, 2023

@rultor please, try to merge

@renovate[bot] @yegor256 Oops, I failed. You can see the full log here (spent 2min)


99% [20 Packages 10.4 kB/28.6 kB 36%]
99% [19 Packages store 0 B] [20 Packages 12.3 kB/28.6 kB 43%]
                                                             
99% [19 Packages store 0 B]
                           
100% [Working]
100% [20 Packages store 0 B]
                            
100% [Working]
              
Fetched 12.7 MB in 2s (5,383 kB/s)

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 60%

Reading package lists... 61%

Reading package lists... 61%

Reading package lists... 70%

Reading package lists... 70%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 85%

Reading package lists... 85%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done

+ sudo -i apt-get -y install libpq-dev
Using /usr/local/rvm/gems/ruby-3.0.1
Using /usr/local/rvm/gems/ruby-3.0.1

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 49%

Reading package lists... 60%

Reading package lists... 61%

Reading package lists... 61%

Reading package lists... 70%

Reading package lists... 70%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 85%

Reading package lists... 85%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       


Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following additional packages will be installed:
  libpq5
Suggested packages:
  postgresql-doc-12
The following packages will be upgraded:
  libpq-dev libpq5
2 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
Need to get 253 kB of archives.
After this operation, 2,048 B of additional disk space will be used.

0% [Working]
            
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpq-dev amd64 12.14-0ubuntu0.20.04.1 [137 kB]

2% [1 libpq-dev 6,957 B/137 kB 5%]
                                  
53% [Working]
             
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpq5 amd64 12.14-0ubuntu0.20.04.1 [116 kB]

54% [2 libpq5 2,613 B/116 kB 2%]
                                
100% [Working]
              
Fetched 253 kB in 1s (362 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 94839 files and directories currently installed.)
Preparing to unpack .../libpq-dev_12.14-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libpq-dev (12.14-0ubuntu0.20.04.1) over (12.12-0ubuntu0.20.04.1) ...
Preparing to unpack .../libpq5_12.14-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libpq5:amd64 (12.14-0ubuntu0.20.04.1) over (12.12-0ubuntu0.20.04.1) ...
Setting up libpq5:amd64 (12.14-0ubuntu0.20.04.1) ...
Setting up libpq-dev (12.14-0ubuntu0.20.04.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
+ git config --global user.email server@codexia.org
+ git config --global user.name codexia.org
+ sudo -i gem update bundler
Using /usr/local/rvm/gems/ruby-3.0.1
Using /usr/local/rvm/gems/ruby-3.0.1
Updating installed gems
Updating bundler
Fetching bundler-2.4.8.gem
Successfully installed bundler-2.4.8
Gems updated: bundler
++ pwd
+ sudo -i bundle install --no-color --gemfile=/home/r/repo/Gemfile
Using /usr/local/rvm/gems/ruby-3.0.1
Using /usr/local/rvm/gems/ruby-3.0.1
Don't run Bundler as root. Installing your bundle as root will break this
application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because the current Bundler version (2.4.8) does not satisfy bundler = 2.3.25
  and Gemfile depends on bundler = 2.3.25,
  version solving has failed.

Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:2.3.25` and rerun
bundler using `bundle _2.3.25_ install --no-color
--gemfile=/home/r/repo/Gemfile`
container 530e7f8078fca12851cd9b057628292495e0ebb7697abbae150b4642cd556143 is dead
Thu 16 Mar 2023 10:28:50 AM CET

@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from 1636787 to 07d527b Compare February 29, 2024 04:30
@renovate renovate bot changed the title Update dependency rack to v2.2.6.4 [SECURITY] Update dependency rack to v2.2.8.1 [SECURITY] Feb 29, 2024
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from 07d527b to 74996e4 Compare February 13, 2025 00:52
@renovate renovate bot changed the title Update dependency rack to v2.2.8.1 [SECURITY] Update dependency rack to v2.2.11 [SECURITY] Feb 13, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from 74996e4 to 48d248c Compare March 4, 2025 21:29
@renovate renovate bot changed the title Update dependency rack to v2.2.11 [SECURITY] Update dependency rack to v2.2.12 [SECURITY] Mar 4, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from 48d248c to b119d1f Compare March 11, 2025 05:00
@renovate renovate bot changed the title Update dependency rack to v2.2.12 [SECURITY] Update dependency rack to v2.2.13 [SECURITY] Mar 11, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from b119d1f to 182cc40 Compare March 27, 2025 07:01
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from 182cc40 to 40dfe8a Compare May 8, 2025 21:15
@renovate renovate bot changed the title Update dependency rack to v2.2.13 [SECURITY] Update dependency rack to v2.2.14 [SECURITY] May 8, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch 2 times, most recently from 15a7880 to e54130a Compare September 25, 2025 18:44
@renovate renovate bot changed the title Update dependency rack to v2.2.14 [SECURITY] Update dependency rack to v2.2.18 [SECURITY] Sep 25, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from e54130a to fe67ff2 Compare October 7, 2025 18:34
@renovate renovate bot changed the title Update dependency rack to v2.2.18 [SECURITY] Update dependency rack to v2.2.19 [SECURITY] Oct 7, 2025
@renovate renovate bot force-pushed the renovate/rubygems-rack-vulnerability branch from fe67ff2 to 9d8f456 Compare October 10, 2025 21:36
@renovate renovate bot changed the title Update dependency rack to v2.2.19 [SECURITY] Update dependency rack to v2.2.20 [SECURITY] Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants