CVE-2026-33210: Json Ruby JSON Has A Format Vulnerability

HIGH
Advisory Identifier: GHSA-3m6g-2423-7cp3
CWE-134
Published
Advisory Summary

CVE-2026-33210 is a HIGH ruby json has a format vulnerability (CWE-134: Use of Externally-Controlled Format String) affecting Json libraries in the RubyGems ecosystem. The issue involves ruby json has a format string injection vulnerability. Remediation is available by upgrading affected packages to version 2.19.2, 2.17.1.2, 2.15.2.1.

CVE-2026-33210 at a Glance

CVE Identifier CVE-2026-33210
GHSA Identifier GHSA-3m6g-2423-7cp3
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-134: Use of Externally-Controlled Format String
Affected Product Json
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2026-33210

To remediate this vulnerability, upgrade all affected Json dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

json fixed: 2.19.2
Upgrade json to 2.19.2
json fixed: 2.17.1.2
Upgrade json to 2.17.1.2
json fixed: 2.15.2.1
Upgrade json to 2.15.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for json

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33210, inspect your project dependencies for Json:

inspect dependencies for json

Analyze the terminal output to locate any version of Json in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.19.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-134: Use of Externally-Controlled Format String, where the product uses a function that accepts a format string as an argument, but the format string originates from an external source. In Json, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A format string injection vulnerability than that lead to denial of service attacks or information disclosure, when the `allow_duplicate_key: false` parsing option is used to parse user supplied documents. This option isn't the default, if you didn't opt-in to use it, you are not impacted. ### Patches Patched in `2.19.2`. ### Workarounds The issue can be avoided by not using the `allow_duplicate_key: false` parsing option.

CVE-2026-33210 Affected Json Versions

3 component(s)
Fixed Versions:
2.19.22.17.1.22.15.2.1
Product / Package Ecosystem Affected Versions Fixed Version
json
RubyGems
≥ 2.18.0
< 2.19.2
2.19.2
json
RubyGems
≥ 2.16.0
< 2.17.1.2
2.17.1.2
json
RubyGems
≥ 2.14.0
< 2.15.2.1
2.15.2.1

References

Frequently Asked Questions

What is CVE-2026-33210?
CVE-2026-33210 is a security vulnerability in Json involving Ruby JSON has a format string injection vulnerability under CWE-134: Use of Externally-Controlled Format String.
Which Json versions are affected?
Affected versions include releases prior to 2.19.2, 2.17.1.2, 2.15.2.1 across affected packages: json.
What version fixes CVE-2026-33210?
Upgrading to 2.19.2, 2.17.1.2, 2.15.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is json affected?
Yes, json is affected in releases prior to 2.19.2, 2.17.1.2, 2.15.2.1. Upgrade your dependency to 2.19.2, 2.17.1.2, 2.15.2.1 or later.
What CWE is associated with CVE-2026-33210?
CVE-2026-33210 is classified under CWE-134: Use of Externally-Controlled Format String (The product uses a function that accepts a format string as an argument, but the format string originates from an external source.).
How can I check RubyGems dependencies for CVE-2026-33210?
Run the dependency tree command: 'inspect dependencies for json'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3m6g-2423-7cp3",
  "modified" : "2026-03-25T18:24:34Z",
  "published" : "2026-03-19T12:45:53Z",
  "aliases" : [ "CVE-2026-33210" ],
  "summary" : "Ruby JSON has a format string injection vulnerability",
  "details" : "### Impact\n\nA format string injection vulnerability than that lead to denial of service attacks or information disclosure, when the `allow_duplicate_key: false` parsing option is used to parse user supplied documents. \n\nThis option isn't the default, if you didn't opt-in to use it, you are not impacted.\n\n### Patches\n\nPatched in `2.19.2`.\n\n### Workarounds\n\nThe issue can be avoided by not using the `allow_duplicate_key: false` parsing option.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "json"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.18.0"
      }, {
        "fixed" : "2.19.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "json"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.16.0"
      }, {
        "fixed" : "2.17.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "json"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.14.0"
      }, {
        "fixed" : "2.15.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ruby/json/security/advisories/GHSA-3m6g-2423-7cp3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33210"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ruby/json"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2026-33210.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-134" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-19T12:45:53Z",
    "nvd_published_at" : "2026-03-20T23:16:46Z"
  }
}