Skip to content

Commit 232ea4d

Browse files
committed
Bump json to patched version, fixing CVE-2026-71847
json 2.21.1 and earlier ship a use-after-free in JSON::ResumableParser#partial_value that can crash on truncated duplicate-key streams (GHSA-9hj4-r449-hfvc). Bump the runtime dependency floor to 2.21.2, which includes the fix. Cherry-picked from fa380fa on master; version.rb is left unchanged since next tracks the unreleased 3.0.0pre line.
1 parent 0bd51a8 commit 232ea4d

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Changes section to scan for breaking or behavioral changes.
66

77
## Release History
88

9+
### 3.0.0pre / 2026-08-09
10+
11+
* Bump the `json` runtime dependency to `2.21.2`+, fixing a use-after-free in
12+
`JSON::ResumableParser#partial_value` that could crash on truncated
13+
duplicate-key streams
14+
([CVE-2026-71847](https://github.com/ruby/json/security/advisories/GHSA-9hj4-r449-hfvc)).
15+
916
### 3.0.0pre / 2026-07-24
1017

1118
* Bump the `json` runtime dependency to `2.19.9`+, fixing a heap buffer

‎Gemfile.lock‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
rubytree (3.0.0pre)
5-
json (~> 2.19, >= 2.19.9)
5+
json (~> 2.19, >= 2.21.2)
66

77
GEM
88
remote: https://rubygems.org/
@@ -22,7 +22,7 @@ GEM
2222
docile (1.4.1)
2323
erb (4.0.4.1)
2424
cgi (>= 0.3.3)
25-
json (2.21.1)
25+
json (2.21.2)
2626
kramdown (2.5.2)
2727
rexml (>= 3.4.4)
2828
kramdown-parser-gfm (1.1.0)

‎rubytree.gemspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Gem::Specification.new do |s|
6767
'--main', 'README.md',
6868
'--quiet']
6969

70-
s.add_dependency 'json', '~> 2.19', '>= 2.19.9'
70+
s.add_dependency 'json', '~> 2.19', '>= 2.21.2'
7171

7272
# NOTE: Rake is added as a development and test dependency in the Gemfile.
7373
s.add_development_dependency 'bundler', '~> 2.6'

0 commit comments

Comments
 (0)