# CVE-2026-67217: cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 29% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T13:32:04.416Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-696
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- DaveGamble cJSON: up to 1.7.19

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://joshua.hu/cjson-json-parser-cve-vulnerabilities> (exploit, press/media-coverage, third-party-advisory)
- <https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L887-L948> (patch, technical-description)
- <https://www.vulncheck.com/advisories/cjson-json-patch-non-atomic-application-destroys-data-before-validation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-67217](https://www.cve.org/CVERecord?id=CVE-2026-67217), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-67217](https://nvd.nist.gov/vuln/detail/CVE-2026-67217), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-67217 · Whole record: https://cve.day/CVE-2026-67217.json · Rebuilt by cve.day 2026-11-25T22:59:30.438Z
