Is json 2.20 vulnerable?

RubyGems · 1 release from 2.20.0 to 2.20.0 · latest json is 3.1.0 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. json 2.20.0, the last 2.20 release, is affected by 1 known security advisory (1 low), including CVE-2026-71847. Upgrade to 2.21.2 or later to fix all of them.

Upgrade with: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

Advisories affecting json 2.20.0

  • 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

Which of your client projects are still on json 2.20?

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.