Is json 2.21 vulnerable?

RubyGems · 3 releases from 2.21.0 to 2.21.2 · latest json is 3.1.0 · checked 18 Nov 2026

No known advisories in the last release

json 2.21.2, the last 2.21 release, has no known advisories. 1 advisory affects earlier 2.21.x releases, so update to 2.21.2.

Update within 2.21:bundle update --conservative json # Gemfile: '>= 2.21.2'

Is your project on an affected json?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Fixed within 2.21.x, affecting earlier releases

  • LowCVE-2026-71847GHSA-9hj4-r449-hfvc7 Aug 2026

    Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams

    Affected
    >=2.20.0 <2.21.2
    Fixed in
    2.21.2

Every json 2.21.x release

Affected: 2.21.0 to 2.21.1. 2.21.2 is not affected. Latest json: 3.1.0.

VersionKnown advisories
json 2.21.2None
json 2.21.1CVE-2026-71847
json 2.21.0CVE-2026-71847

Which of your client projects are still on json 2.21?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact json version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other json versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.