parse-stack-next 5.8.4 → 5.8.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/lib/parse/stack/active_support_advisory.rb +52 -0
- data/lib/parse/stack/rack_advisory.rb +5 -5
- data/lib/parse/stack/version.rb +1 -1
- data/lib/parse/stack.rb +2 -0
- data/parse-stack-next.gemspec +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea3a43f6b1f863cf2f17650b5e68485b51aa6389c61eb2440315c527eaee387b
|
|
4
|
+
data.tar.gz: c712b436fbae3ea8ce6325cb4092f16c05a0f98f9d16f8073edc0b25dbd839fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86363b8b9e30015241837636ffeb1863df881fb098d447434481e35e0e7fa690db5404c974df34defcf58cdaada584fd57dd6e65b20e1cd196a29ef990588db3
|
|
7
|
+
data.tar.gz: b33853a0e31d8ebdcf2a6667cbb679535ba49a712318f7669489f6fa04b22c6bf2a7ca03cd1ac45b657fe566fdf388974286c0882f1b5ee77c6fd38645bde9e2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
## parse-stack-next Changelog
|
|
2
2
|
|
|
3
|
+
### 5.8.5
|
|
4
|
+
|
|
5
|
+
A security patch for the 2026 Rack and ActiveSupport advisories. It raises the
|
|
6
|
+
Rack floor, warns at load time on a vulnerable Rack or ActiveSupport release,
|
|
7
|
+
and refreshes locked dependencies.
|
|
8
|
+
|
|
9
|
+
#### Vulnerable Rack and ActiveSupport releases are reported at load time
|
|
10
|
+
|
|
11
|
+
- **CHANGED**: The `rack` requirement is raised from `>= 2.2.23` to
|
|
12
|
+
`>= 2.2.25`, the fixed release on the 2.2 line for GHSA-5v64-555j-wjxm
|
|
13
|
+
(multipart scan buffer DoS), GHSA-wvg4-6p58-3gh3 (`Rack::Static`
|
|
14
|
+
`header_rules` bypass), and GHSA-p8x9-v4hv-2w4g (multipart boundary guard
|
|
15
|
+
bypass).
|
|
16
|
+
- **FIXED**: The load-time Rack warning now covers 3.1.21 to 3.1.22 and 3.2.6
|
|
17
|
+
to 3.2.7, which are affected by those advisories and by GHSA-2j8w-xcrc-x985
|
|
18
|
+
(`Rack::Request#host_with_port` returns the raw invalid Host header). The
|
|
19
|
+
fixed releases are 3.1.23 and 3.2.8; the 3.0 line has no fixed release.
|
|
20
|
+
- **NEW**: The SDK warns once at load time when the loaded ActiveSupport is
|
|
21
|
+
affected by GHSA-8474-xrp6-wh69 (`safe_constantize` DoS) or
|
|
22
|
+
GHSA-2w9f-fxwj-w2qf (MessagePack serializer XSS). The fixed releases are
|
|
23
|
+
8.0.5.2 and 8.1.4.1; the 6.1 and 7.x lines have no fixed release, so every
|
|
24
|
+
release on them is reported. The gemspec range is unchanged, and the SDK
|
|
25
|
+
does not call either affected API itself.
|
|
26
|
+
|
|
27
|
+
#### Dependency updates
|
|
28
|
+
|
|
29
|
+
- **CHANGED**: Bumped locked dependencies to their latest compatible releases:
|
|
30
|
+
`activemodel` 8.1.4 → 8.1.4.1, `activesupport` 8.1.4 → 8.1.4.1, `csv` 3.3.6
|
|
31
|
+
→ 3.3.7, `faraday` 2.15.0 → 2.15.1, `graphql` 2.6.13 → 2.6.15, `mongo`
|
|
32
|
+
2.26.0 → 2.26.1, `rack` 3.2.7 → 3.2.8, and `rotp` 6.3.0 → 6.4.0. The
|
|
33
|
+
test-only `minitest` dependency moves 6.0.6 → 6.1.0.
|
|
34
|
+
|
|
35
|
+
#### Behavior Notes
|
|
36
|
+
|
|
37
|
+
- An application on Rack 2.2.23 or 2.2.24 no longer resolves against this
|
|
38
|
+
release and needs to update Rack. An application on a vulnerable Rack 3.x or
|
|
39
|
+
ActiveSupport release still installs and loads, and prints one warning to
|
|
40
|
+
standard error.
|
|
41
|
+
|
|
3
42
|
### 5.8.4
|
|
4
43
|
|
|
5
44
|
A security patch across the agent, MCP, Atlas Search, mongo-direct, transport,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# encoding: UTF-8
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Parse
|
|
5
|
+
module Stack
|
|
6
|
+
# Load-time check for ActiveSupport releases affected by the 2026
|
|
7
|
+
# ActiveSupport security advisories (GHSA-8474-xrp6-wh69 and
|
|
8
|
+
# GHSA-2w9f-fxwj-w2qf). The fixes are 8.0.5.2 and 8.1.4.1; the 6.1 and
|
|
9
|
+
# 7.x lines have no fixed release. The gemspec keeps those lines
|
|
10
|
+
# installable, so a vulnerable release is reported here instead of being
|
|
11
|
+
# refused at install time. ActiveModel is versioned in lockstep with
|
|
12
|
+
# ActiveSupport, so checking ActiveSupport covers both.
|
|
13
|
+
module ActiveSupportAdvisory
|
|
14
|
+
# Lowest fixed release per affected minor line. Every release below
|
|
15
|
+
# the 8.0 fix is affected, including the unfixed 6.1 and 7.x lines.
|
|
16
|
+
FIXED = { "8.0" => "8.0.5.2", "8.1" => "8.1.4.1" }.freeze
|
|
17
|
+
|
|
18
|
+
module_function
|
|
19
|
+
|
|
20
|
+
# Whether an ActiveSupport version is a known-vulnerable release.
|
|
21
|
+
# @param version [String, Gem::Version]
|
|
22
|
+
# @return [Boolean]
|
|
23
|
+
def vulnerable?(version)
|
|
24
|
+
v = Gem::Version.new(version.to_s)
|
|
25
|
+
line = v.segments.first(2).join(".")
|
|
26
|
+
fixed = FIXED[line]
|
|
27
|
+
return v < Gem::Version.new(fixed) if fixed
|
|
28
|
+
v < Gem::Version.new(FIXED["8.0"])
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Warn once when the loaded ActiveSupport release is vulnerable.
|
|
32
|
+
# @param version [String, Gem::Version, nil] defaults to the activated
|
|
33
|
+
# activesupport gem's version.
|
|
34
|
+
# @return [Boolean] true when a warning was printed
|
|
35
|
+
def check!(version = nil)
|
|
36
|
+
version ||= Gem.loaded_specs["activesupport"]&.version
|
|
37
|
+
return false if version.nil? || @warned
|
|
38
|
+
return false unless vulnerable?(version)
|
|
39
|
+
@warned = true
|
|
40
|
+
warn "[parse-stack-next] ActiveSupport #{version} is affected by the 2026 " \
|
|
41
|
+
"ActiveSupport security advisories. Upgrade to ActiveSupport 8.1.4.1 or " \
|
|
42
|
+
"later (or 8.0.5.2 or later on the 8.0 line; 6.1 and 7.x have no fixed release)."
|
|
43
|
+
true
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def reset!
|
|
48
|
+
@warned = false
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
module Parse
|
|
5
5
|
module Stack
|
|
6
|
-
# Load-time check for Rack releases affected by the 2026
|
|
7
|
-
# advisories. The fixes are per branch (2.2.
|
|
6
|
+
# Load-time check for Rack releases affected by the 2026 Rack security
|
|
7
|
+
# advisories. The fixes are per branch (2.2.25, 3.1.23, 3.2.8, with no
|
|
8
8
|
# fixed 3.0 release). The gemspec floor covers the 2.2 line; RubyGems
|
|
9
9
|
# limits a requirement string to 255 characters, which is too short to
|
|
10
10
|
# exclude each vulnerable 3.x release by name, so a vulnerable 3.x
|
|
@@ -12,7 +12,7 @@ module Parse
|
|
|
12
12
|
module RackAdvisory
|
|
13
13
|
# Lowest fixed release per Rack 3.x minor line; nil means no fix exists
|
|
14
14
|
# on that line.
|
|
15
|
-
FIXED_3X = { "3.0" => nil, "3.1" => "3.1.
|
|
15
|
+
FIXED_3X = { "3.0" => nil, "3.1" => "3.1.23", "3.2" => "3.2.8" }.freeze
|
|
16
16
|
|
|
17
17
|
module_function
|
|
18
18
|
|
|
@@ -38,8 +38,8 @@ module Parse
|
|
|
38
38
|
return false if version.nil? || @warned
|
|
39
39
|
return false unless vulnerable?(version)
|
|
40
40
|
@warned = true
|
|
41
|
-
warn "[parse-stack-next] Rack #{version} is affected by the 2026
|
|
42
|
-
"security advisories. Upgrade to Rack 3.2.
|
|
41
|
+
warn "[parse-stack-next] Rack #{version} is affected by the 2026 Rack " \
|
|
42
|
+
"security advisories. Upgrade to Rack 3.2.8 or later (or 3.1.23 or later " \
|
|
43
43
|
"on the 3.1 line; the 3.0 line has no fixed release)."
|
|
44
44
|
true
|
|
45
45
|
end
|
data/lib/parse/stack/version.rb
CHANGED
data/lib/parse/stack.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
require_relative "stack/version"
|
|
5
5
|
require_relative "stack/rack_advisory"
|
|
6
|
+
require_relative "stack/active_support_advisory"
|
|
6
7
|
require_relative "terminal_safe"
|
|
7
8
|
require_relative "client"
|
|
8
9
|
require_relative "query"
|
|
@@ -19,6 +20,7 @@ require_relative "lookup_rewriter"
|
|
|
19
20
|
require_relative "console"
|
|
20
21
|
|
|
21
22
|
Parse::Stack::RackAdvisory.check!
|
|
23
|
+
Parse::Stack::ActiveSupportAdvisory.check!
|
|
22
24
|
|
|
23
25
|
module Parse
|
|
24
26
|
class Error < StandardError; end
|
data/parse-stack-next.gemspec
CHANGED
|
@@ -54,12 +54,12 @@ Gem::Specification.new do |spec|
|
|
|
54
54
|
spec.add_runtime_dependency "faraday-net_http_persistent", "~> 2.0"
|
|
55
55
|
spec.add_runtime_dependency "moneta", "< 2"
|
|
56
56
|
spec.add_runtime_dependency "connection_pool", ">= 2.2", "< 4"
|
|
57
|
-
# Rack's 2026
|
|
58
|
-
# 3.2.
|
|
57
|
+
# Rack's 2026 advisories are fixed per branch: 2.2.25, 3.1.23, and
|
|
58
|
+
# 3.2.8 (the 3.0 line has no fixed release). RubyGems limits a dependency's
|
|
59
59
|
# requirement string to 255 characters, too short to exclude each vulnerable
|
|
60
60
|
# 3.x release by name, so the floor covers the 2.2 line and
|
|
61
61
|
# Parse::Stack::RackAdvisory warns at load time on a vulnerable 3.x release.
|
|
62
|
-
spec.add_runtime_dependency "rack", ">= 2.2.
|
|
62
|
+
spec.add_runtime_dependency "rack", ">= 2.2.25", "< 4"
|
|
63
63
|
spec.add_runtime_dependency "csv", "~> 3.3"
|
|
64
64
|
spec.add_runtime_dependency "ostruct", "~> 0.6"
|
|
65
65
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: parse-stack-next
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.8.
|
|
4
|
+
version: 5.8.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Curtin
|
|
@@ -145,7 +145,7 @@ dependencies:
|
|
|
145
145
|
requirements:
|
|
146
146
|
- - ">="
|
|
147
147
|
- !ruby/object:Gem::Version
|
|
148
|
-
version: 2.2.
|
|
148
|
+
version: 2.2.25
|
|
149
149
|
- - "<"
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
151
|
version: '4'
|
|
@@ -155,7 +155,7 @@ dependencies:
|
|
|
155
155
|
requirements:
|
|
156
156
|
- - ">="
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: 2.2.
|
|
158
|
+
version: 2.2.25
|
|
159
159
|
- - "<"
|
|
160
160
|
- !ruby/object:Gem::Version
|
|
161
161
|
version: '4'
|
|
@@ -425,6 +425,7 @@ files:
|
|
|
425
425
|
- lib/parse/schema/index_migrator.rb
|
|
426
426
|
- lib/parse/schema/search_index_migrator.rb
|
|
427
427
|
- lib/parse/stack.rb
|
|
428
|
+
- lib/parse/stack/active_support_advisory.rb
|
|
428
429
|
- lib/parse/stack/generators/rails.rb
|
|
429
430
|
- lib/parse/stack/generators/templates/model.erb
|
|
430
431
|
- lib/parse/stack/generators/templates/model_installation.rb
|