json vulnerabilities

This is a JSON implementation as a Ruby extension in C.

Registry
RubyGems
Latest
3.1.0
License
Ruby

6 known advisories

The latest version, 3.1.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative json # Gemfile: '>= 3.1.0'

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

Security advisories for json

  • 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
  • LowCVE-2026-54696GHSA-x2f5-4prf-w68723 Jul 2026

    Ruby json: JSON generator heap buffer overflow when streaming to an IO

    Affected
    >=2.9.0 <2.19.9
    Fixed in
    2.19.9
  • HighCVE-2026-33210GHSA-3m6g-2423-7cp319 Mar 2026

    Ruby JSON has a format string injection vulnerability

    Affected
    >=2.18.0 <2.19.2 · >=2.16.0 <2.17.1.2 · >=2.14.0 <2.15.2.1
    Fixed in
    2.15.2.1, 2.17.1.2, 2.19.2
  • HighCVE-2025-27788GHSA-9m3q-rhmv-5q4412 Mar 2025

    Out-of-bounds Read in Ruby JSON Parser

    Affected
    >=2.10.0 <2.10.2
    Fixed in
    2.10.2
  • HighCVE-2020-10663GHSA-jphg-qwrw-7w9g27 Jul 2020

    Unsafe object creation in json RubyGem

    Affected
    <2.3.0
    Fixed in
    2.3.0
  • HighCVE-2013-0269GHSA-x457-cw4h-hq5f24 Oct 2017

    JSON gem has Improper Input Validation vulnerability

    Affected
    <1.5.5 · >=1.6.0 <1.6.8 · >=1.7.0 <1.7.7
    Fixed in
    1.5.5, 1.6.8, 1.7.7

Is your json version vulnerable?

Which of your client projects still run an old json?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.