rack 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rack might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +82 -0
- data/lib/rack/common_logger.rb +3 -2
- data/lib/rack/sendfile.rb +1 -1
- data/lib/rack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90c0540cb367990c1d880a1645e175ec6b69f3fe8463f415a3f6e85771169914
|
4
|
+
data.tar.gz: b18a53def64cd7b67d70afa9e2748a5ceb49827c44c4481da19749b101574d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8fa1f298a40a4754768911053dd57c5fc269f81134faaac3cd49375d86e06bcf26999a35c897ee1a24de18d4246320cbf523b0f3666a0586166fbad9790c68
|
7
|
+
data.tar.gz: 8da18291a78c744f9a63a5afaaf24f97c96dddaf34a8b65e1e364cc5ff8dcb0d55007b07b963e9954c0a283bdd1899c5067501c3d465355ccde6829028640fc7
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file. For info on how to format all future additions to this file please reference [Keep A Changelog](https://keepachangelog.com/en/1.0.0/).
|
4
4
|
|
5
|
+
## [3.1.11] - 2025-03-04
|
6
|
+
|
7
|
+
### Security
|
8
|
+
|
9
|
+
- [CVE-2025-27111](https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v) Possible Log Injection in `Rack::Sendfile`.
|
10
|
+
|
11
|
+
## [3.1.10] - 2025-02-12
|
12
|
+
|
13
|
+
### Security
|
14
|
+
|
15
|
+
- [CVE-2025-25184](https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg) Possible Log Injection in `Rack::CommonLogger`.
|
16
|
+
|
5
17
|
## [3.1.9] - 2025-01-31
|
6
18
|
|
7
19
|
### Fixed
|
@@ -111,6 +123,18 @@ Rack v3.1 is primarily a maintenance release that removes features deprecated in
|
|
111
123
|
|
112
124
|
- In `Rack::Files`, ignore the `Range` header if served file is 0 bytes. ([#2159](https://github.com/rack/rack/pull/2159), [@zarqman])
|
113
125
|
|
126
|
+
## [3.0.13] - 2025-03-04
|
127
|
+
|
128
|
+
### Security
|
129
|
+
|
130
|
+
- [CVE-2025-27111](https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v) Possible Log Injection in `Rack::Sendfile`.
|
131
|
+
|
132
|
+
## [3.0.12] - 2025-02-12
|
133
|
+
|
134
|
+
### Security
|
135
|
+
|
136
|
+
- [CVE-2025-25184](https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg) Possible Log Injection in `Rack::CommonLogger`.
|
137
|
+
|
114
138
|
## [3.0.11] - 2024-05-10
|
115
139
|
|
116
140
|
- Backport #2062 to 3-0-stable: Do not allow `BodyProxy` to respond to `to_str`, make `to_ary` call close . ([#2062](https://github.com/rack/rack/pull/2062), [@jeremyevans](https://github.com/jeremyevans))
|
@@ -287,6 +311,64 @@ Rack v3.1 is primarily a maintenance release that removes features deprecated in
|
|
287
311
|
- Fix multipart filename generation for filenames that contain spaces. Encode spaces as "%20" instead of "+" which will be decoded properly by the multipart parser. ([#1736](https://github.com/rack/rack/pull/1645), [@muirdm](https://github.com/muirdm))
|
288
312
|
- `Rack::Request#scheme` returns `ws` or `wss` when one of the `X-Forwarded-Scheme` / `X-Forwarded-Proto` headers is set to `ws` or `wss`, respectively. ([#1730](https://github.com/rack/rack/issues/1730), [@erwanst](https://github.com/erwanst))
|
289
313
|
|
314
|
+
## [2.2.12] - 2025-03-04
|
315
|
+
|
316
|
+
### Security
|
317
|
+
|
318
|
+
- [CVE-2025-27111](https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v) Possible Log Injection in `Rack::Sendfile`.
|
319
|
+
|
320
|
+
## [2.2.11] - 2025-02-12
|
321
|
+
|
322
|
+
### Security
|
323
|
+
|
324
|
+
- [CVE-2025-25184](https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg) Possible Log Injection in `Rack::CommonLogger`.
|
325
|
+
|
326
|
+
## [2.2.10] - 2024-10-14
|
327
|
+
|
328
|
+
- Fix compatibility issues with Ruby v3.4.0. ([#2248](https://github.com/rack/rack/pull/2248), [@byroot](https://github.com/byroot))
|
329
|
+
|
330
|
+
## [2.2.9] - 2023-03-21
|
331
|
+
|
332
|
+
- Return empty when parsing a multi-part POST with only one end delimiter. ([#2104](https://github.com/rack/rack/pull/2104), [@alpaca-tc])
|
333
|
+
|
334
|
+
## [2.2.8] - 2023-07-31
|
335
|
+
|
336
|
+
- Regenerate SPEC ([#2102](https://github.com/rack/rack/pull/2102), [@skipkayhil](https://github.com/skipkayhil))
|
337
|
+
- Limit file extension length of multipart tempfiles ([#2015](https://github.com/rack/rack/pull/2015), [@dentarg](https://github.com/dentarg))
|
338
|
+
- Fix "undefined method DelegateClass for Rack::Session::Cookie:Class" ([#2092](https://github.com/rack/rack/pull/2092), [@onigra](https://github.com/onigra) [@dchandekstark](https://github.com/dchandekstark))
|
339
|
+
|
340
|
+
## [2.2.7] - 2023-03-13
|
341
|
+
|
342
|
+
- Correct the year number in the changelog ([#2015](https://github.com/rack/rack/pull/2015), [@kimulab](https://github.com/kimulab))
|
343
|
+
- Support underscore in host names for Rack 2.2 (Fixes [#2070](https://github.com/rack/rack/issues/2070)) ([#2015](https://github.com/rack/rack/pull/2071), [@jeremyevans](https://github.com/jeremyevans))
|
344
|
+
|
345
|
+
## [2.2.6.4] - 2023-03-13
|
346
|
+
|
347
|
+
- [CVE-2023-27539] Avoid ReDoS in header parsing
|
348
|
+
|
349
|
+
## [2.2.6.3] - 2023-03-02
|
350
|
+
|
351
|
+
- [CVE-2023-27530] Introduce multipart_total_part_limit to limit total parts
|
352
|
+
|
353
|
+
## [2.2.6.2] - 2023-01-17
|
354
|
+
|
355
|
+
- [CVE-2022-44570] Fix ReDoS in Rack::Utils.get_byte_ranges
|
356
|
+
|
357
|
+
## [2.2.6.1] - 2023-01-17
|
358
|
+
|
359
|
+
- [CVE-2022-44571] Fix ReDoS vulnerability in multipart parser
|
360
|
+
- [CVE-2022-44572] Forbid control characters in attributes (also ReDoS)
|
361
|
+
|
362
|
+
## [2.2.6] - 2023-01-17
|
363
|
+
|
364
|
+
- Extend `Rack::MethodOverride` to handle `QueryParser::ParamsTooDeepError` error. ([#2011](https://github.com/rack/rack/pull/2011), [@byroot](https://github.com/byroot))
|
365
|
+
|
366
|
+
## [2.2.5] - 2022-12-27
|
367
|
+
|
368
|
+
### Fixed
|
369
|
+
|
370
|
+
- `Rack::URLMap` uses non-deprecated form of `Regexp.new`. ([#1998](https://github.com/rack/rack/pull/1998), [@weizheheng](https://github.com/weizheheng))
|
371
|
+
|
290
372
|
## [2.2.4] - 2022-06-30
|
291
373
|
|
292
374
|
- Better support for lower case headers in `Rack::ETag` middleware. ([#1919](https://github.com/rack/rack/pull/1919), [@ioquatix](https://github.com/ioquatix))
|
data/lib/rack/common_logger.rb
CHANGED
@@ -20,7 +20,7 @@ module Rack
|
|
20
20
|
# The actual format is slightly different than the above due to the
|
21
21
|
# separation of SCRIPT_NAME and PATH_INFO, and because the elapsed
|
22
22
|
# time in seconds is included at the end.
|
23
|
-
FORMAT = %{%s - %s [%s] "%s %s%s%s %s" %d %s %0.4f
|
23
|
+
FORMAT = %{%s - %s [%s] "%s %s%s%s %s" %d %s %0.4f }
|
24
24
|
|
25
25
|
# +logger+ can be any object that supports the +write+ or +<<+ methods,
|
26
26
|
# which includes the standard library Logger. These methods are called
|
@@ -66,7 +66,8 @@ module Rack
|
|
66
66
|
length,
|
67
67
|
Utils.clock_time - began_at)
|
68
68
|
|
69
|
-
msg.gsub!(/[^[:print:]
|
69
|
+
msg.gsub!(/[^[:print:]]/) { |c| sprintf("\\x%x", c.ord) }
|
70
|
+
msg[-1] = "\n"
|
70
71
|
|
71
72
|
logger = @logger || request.get_header(RACK_ERRORS)
|
72
73
|
# Standard library logger doesn't support write but it supports << which actually
|
data/lib/rack/sendfile.rb
CHANGED
data/lib/rack/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leah Neukirchen
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: minitest
|