CISA list

● RubyGems gem

json

Json has six security advisories. The newest release any of them names as the fix is 2.21.2.

As of , json has six security advisories. The newest release any of them names as the fix is 2.21.2.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
From 2.20.0 before 2.21.22.21.21 advisory
From 2.9.0 before 2.19.92.19.93 advisories
Before 2.3.02.3.02 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-71847GHSA-9hj4-r449-hfvcRuby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streamsLow severityFrom 2.20.0 before 2.21.22.21.2
CVE-2026-54696GHSA-x2f5-4prf-w687Ruby json: JSON generator heap buffer overflow when streaming to an IOLow severityFrom 2.9.0 before 2.19.92.19.9
CVE-2026-33210GHSA-3m6g-2423-7cp3Ruby JSON has a format string injection vulnerabilityHigh severityFrom 2.18.0 before 2.19.2; From 2.16.0 before 2.17.1.2; From 2.14.0 before 2.15.2.12.15.2.1, 2.17.1.2, 2.19.2
CVE-2025-27788GHSA-9m3q-rhmv-5q44Out-of-bounds Read in Ruby JSON ParserHigh severityFrom 2.10.0 before 2.10.22.10.2
CVE-2020-10663GHSA-jphg-qwrw-7w9gUnsafe object creation in json RubyGemHigh severityBefore 2.3.02.3.0
CVE-2013-0269GHSA-x457-cw4h-hq5fJSON gem has Improper Input Validation vulnerabilityHigh severityFrom 1.7.0 before 1.7.7; From 1.6.0 before 1.6.8; Before 1.5.51.5.5, 1.6.8, 1.7.7

Other RubyGems gems

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0