CVE-2026-67217
published medium CVSS 4.0 · 6.9cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| DaveGamble | — | cJSON0 through 1.7.19 · Other versions: affected | Affected | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| DaveGamble | cJSON | 0 through 1.7.19 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-696 Incorrect Behavior Order
References
3- apply_patch delete-before-validate ordering (cJSON_Utils.c) https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L887-L948
- Security vulnerabilities in the cJSON JSON parser (Joshua Rogers) https://joshua.hu/cjson-json-parser-cve-vulnerabilities
- VulnCheck Advisory: cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation https://www.vulncheck.com/advisories/cjson-json-patch-non-atomic-application-destroys-data-before-validation
Provider assertions
2VulnCheck · cna
cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c62d076f0f3478376eead189c701346fcc7c8027c3885705e1ff27939975a55c
- Ingested
- 23 Sep 2026, 09:26:54 UTC
- Source record
- Official CVE record