{"id":"CVE-2026-67217","published":"2026-07-29T13:32:04Z","modified":"2026-07-29T16:00:27Z","title":"cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation","vendor":"DaveGamble","product":"cJSON","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.38429,"provenance":"source"},"cwes":[{"id":"CWE-696","name":"Incorrect Behavior Order"}],"references":[{"url":"https://joshua.hu/cjson-json-parser-cve-vulnerabilities","tags":["exploit"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L887-L948","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/cjson-json-patch-non-atomic-application-destroys-data-before-validation","tags":["third-party-advisory"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":7.69},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"davegamble","affectedVersions":[{"vendor":"DaveGamble","product":"cJSON","versions":["<= 1.7.19"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T14:45:50.377868Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-50329","exploited":false,"provenance":"source"},"exploitRefs":["https://joshua.hu/cjson-json-parser-cve-vulnerabilities"]}