Incorrect Behavior Order Affecting cjson package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.3% (22nd percentile)

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 IDSNYK-UBUNTU2004-CJSON-18430329
  • published29 Aug 2026
  • disclosed29 Jul 2026

Introduced: 29 Jul 2026

CVE-2026-67217  (opens in a new tab)
CWE-696  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 cjson.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cjson package and not the cjson package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.

CVSS Base Scores

version 3.1