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

Published Jul 29, 2026
·
Updated

cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in applypatch() in cJSONUtils.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 cJSONUtilsApplyPatches() or cJSONUtilsApplyPatchesCaseSensitive() 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.

Affected Software

2 affected components
cJSON JSON Patch<=1.7.19
DaveGamble cJSON<=1.7.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cJSON to a version that resolves this vulnerability.

    Fixed in 1.7.19
  2. Compensating control

    Because cJSON applies RFC 6902 JSON Patch operations non-atomically and may mutate the target document before validation fails, do not rely on the API failure status to preserve the original document; apply JSON patches only after pre-validating patch documents/operations (e.g., ensure replace operations include a value member and move destinations can be resolved) and use an application-level all-or-nothing workflow (such as patching a copy and committing only on success).

Event History

Jul 29, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-67217?

CVE-2026-67217 has a medium severity rating of 5.3.

2

How does CVE-2026-67217 affect data?

CVE-2026-67217 allows non-atomic application of JSON patch operations, potentially leading to data loss.

3

What software is impacted by CVE-2026-67217?

CVE-2026-67217 affects the cJSON JSON Patch library versions up to 1.7.19.

4

How can I mitigate CVE-2026-67217?

Mitigation for CVE-2026-67217 involves upgrading to a patched version of the cJSON library.

5

What types of operations are affected by CVE-2026-67217?

CVE-2026-67217 specifically affects replace and move operations in JSON patch applications when certain conditions are unmet.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203