rack 3.1.9 → 3.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b01af1af7b2ac850bd4296234559b6b8056c3253b54b4f0fc1f9f0be48173e8
4
- data.tar.gz: 42398750f039d8f0a35a9f6f14455d892c104a3b2d03624ca2c62f20596cc9dc
3
+ metadata.gz: 58b45f32cc72a649a82bc9aab409e575e4b3b9acb373a7e5015fa6b5fd948845
4
+ data.tar.gz: 181f48f799ffa1b64a90b6b1d4bcdb1e9af8b9b10bf72cee2a637e4dd0b7c317
5
5
  SHA512:
6
- metadata.gz: 134254ca758692fa2a977ff12168a28480de90cb941d8d6823f428f6da417859fdafee931592d066eb1917388ec38c346ec8b286be427684ef8eb3d3f59ab2b8
7
- data.tar.gz: 5c9a8b860dc38866e9a20237492f800a9ed6b353267abbed6e3ed1f161f45f431017ed0d54f42adfd7b4b3eed1b012345dd8d689fb42ca68cb63194fad4ec7b4
6
+ metadata.gz: 8657201de040d14a5e345bc2d3b7aa9f58751b9f1c7f14c95c9dbc3cc96a50ce566f544be3464920845b0d0e88a283853c397646546beb1ba7d6c15ab54b490d
7
+ data.tar.gz: 36bca618d65a42de84c660f82c50d1aed0e809f0ac44665abcfc546405a5548850dfc9d129580254dcef3f77d4c057c9c2e24462ac2f4f3b6e7104ffe0f46a08
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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.10] - 2025-02-12
6
+
7
+ ### Security
8
+
9
+ - [CVE-2025-25184](https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg) Possible Log Injection in Rack::CommonLogger.
10
+
5
11
  ## [3.1.9] - 2025-01-31
6
12
 
7
13
  ### Fixed
@@ -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\n}
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:]\n]/) { |c| sprintf("\\x%x", c.ord) }
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/version.rb CHANGED
@@ -12,7 +12,7 @@
12
12
  # so it should be enough just to <tt>require 'rack'</tt> in your code.
13
13
 
14
14
  module Rack
15
- RELEASE = "3.1.9"
15
+ RELEASE = "3.1.10"
16
16
 
17
17
  # Return the Rack release as a dotted string.
18
18
  def self.release
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.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leah Neukirchen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-30 00:00:00.000000000 Z
10
+ date: 2025-02-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: minitest