Use of Externally-Controlled Format String Affecting json package, versions >=2.14.0, <2.15.2.1>=2.16.0, <2.17.1.2>=2.18.0, <2.19.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Externally-Controlled Format String vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-JSON-15692503
  • published19 Mar 2026
  • disclosed19 Mar 2026
  • creditDavidKorczynski

Introduced: 19 Mar 2026

NewCVE-2026-33210  (opens in a new tab)
CWE-134  (opens in a new tab)

How to fix?

Upgrade json to version 2.15.2.1, 2.17.1.2, 2.19.2 or higher.

Overview

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

Affected versions of this package are vulnerable to Use of Externally-Controlled Format String in JSON.parse(doc, allow_duplicate_key: false). An attacker can cause denial of service or disclose sensitive information via malicious format strings. This is only exploitable if the allow_duplicate_key: false option is explicitly enabled.

CVSS Base Scores

version 4.0
version 3.1