Skip to content

chore(deps): bump json from 2.15.2.1 to 2.21.2 in /.github - #300

Open
josegonzalez wants to merge 1 commit into
mainfrom
dependabot-21-ruby-json-json-generator-heap-buffer-overflow-when-streaming-to-an-io
Open

chore(deps): bump json from 2.15.2.1 to 2.21.2 in /.github#300
josegonzalez wants to merge 1 commit into
mainfrom
dependabot-21-ruby-json-json-generator-heap-buffer-overflow-when-streaming-to-an-io

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

Resolves Dependabot security alert #21 by bumping the json RubyGem from 2.15.2.1 to 2.21.2 in .github/Gemfile.lock, moving it out of the vulnerable range >= 2.9.0, < 2.19.9 reported by GHSA-x2f5-4prf-w687 / CVE-2026-54696.

The advisory describes a heap out-of-bounds write (CWE-122) on the JSON generator's IO-streaming path, where JSON.dump(obj, io) and JSON::State#generate(obj, io) can write past the internal buffer when a streamed object contains an attacker-controlled string near the 16 KB boundary, resulting in a reliable denial of service. The demonstrated impact is a process crash and the fix first landed in json 2.19.9.

json is a transitive dependency pulled in by package_cloud under the constraint json (~> 2.9), which 2.19.9 continues to satisfy, so no other lockfile entries change. This Gemfile is release tooling used only by the tagged-release workflow to build Debian packages with fpm and publish them to PackageCloud, and no application code invokes the affected IO-streaming path, so this is a dependency bump with no behavioral change.

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.

1 participant