RubyGems (Ruby)Worst: High6 advisories

json: known vulnerabilities

json has 6 reviewed security advisories in the GitHub Advisory Database — 4 high, 2 low. The most recent was published 2026-08-07. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the json versions running across your servers, containers and images, and ranks what to patch first.

How to fix json

Upgrade json to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update json to 2.21.2 (or gem install json -v 2.21.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (6)

Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams Low CWE-416 — Affected: from 2.20.0 up to 2.21.2. Fixed in 2.21.2. Published 2026-08-07. GHSA-9hj4-r449-hfvc · CVE-2026-71847
Ruby json: JSON generator heap buffer overflow when streaming to an IO Low 3.7 CWE-122 CWE-131 CWE-787 — Affected: from 2.9.0 up to 2.19.9. Fixed in 2.19.9. Published 2026-06-30. GHSA-x2f5-4prf-w687 · CVE-2026-54696
Ruby JSON has a format string injection vulnerability High CWE-134 — Affected: from 2.14.0 up to 2.15.2.1. Fixed in 2.15.2.1. Published 2026-03-20. GHSA-3m6g-2423-7cp3 · CVE-2026-33210
Out-of-bounds Read in Ruby JSON Parser High 7.5 CWE-125 — Affected: from 2.10.0 up to 2.10.2. Fixed in 2.10.2. Published 2025-03-12. GHSA-9m3q-rhmv-5q44 · CVE-2025-27788
JSON gem has Improper Input Validation vulnerability High CWE-20 — Affected: from 1.7.0 up to 1.7.7. Fixed in 1.7.7. Published 2013-02-13. GHSA-x457-cw4h-hq5f · CVE-2013-0269

Find json across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.