CVE-2026-86512
Description
A flaw was found in java-json-tools json-patch. This vulnerability, located in the CopyOperation.apply and MoveOperation.apply functions, allows for improper access controls. A remote attacker could exploit this to potentially perform unauthorized operations, leading to impacts on confidentiality, integrity, and availability of data.
Statement
An improper access control vulnerability was found in java-json-tools json-patch, a Java library for applying JSON Patch (RFC 6902) documents. In versions up to and including 1.13, the CopyOperation.apply and MoveOperation.apply functions in the Copy Move Operations component fail to properly validate access controls on source and destination paths. An attacker can craft a malicious JSON Patch document using "copy" or "move" operations to bypass intended access restrictions, allowing unauthorized reading of data from protected paths or modification of data in restricted locations. This can lead to information disclosure, data tampering, or privilege escalation depending on the application's data structure. This vulnerability can be exploited remotely, does not require special privileges in the vulnerable library itself, and exploit code is publicly available. The issue was reported by the PayPal Cyber Security Team. As of September 2026, the project maintainers have not responded to vulnerability reports and no patch is currently available. This issue affects Red Hat products that bundle vulnerable versions of json-patch and use the library to process untrusted input on security-sensitive data structures.
Mitigation
There is no official patch available for this vulnerability. Until a fix is released, administrators can implement the following mitigations to reduce the risk of access control bypass attacks:
1. Implement strict path validation before applying JSON Patch operations. Maintain an allowlist of permitted source and destination paths, and reject any patch operations that reference paths outside the allowlist. This prevents unauthorized copy/move operations on restricted data.
2. For applications using JSON Patch on user-modifiable data, implement an additional access control layer that validates whether the authenticated user has permission to read from the source path and write to the destination path before applying copy or move operations.
3. Avoid using JSON Patch for operations on security-sensitive data structures such as user permissions, roles, privileges, or access control lists. Use dedicated, validated APIs for these operations instead.
4. In multi-tenant environments, ensure tenant isolation is enforced at a layer above the JSON Patch processing, preventing cross-tenant path access even if the json-patch library allows it.
5. Apply the principle of least privilege to JSON document structures. Separate sensitive data into distinct documents or services that are not accessible via JSON Patch operations.
6. Monitor for suspicious JSON Patch operations, particularly copy and move operations that reference unusual paths or attempt to access administrative or system paths.
7. Where possible, restrict JSON Patch processing to authenticated and trusted sources only. Implement rate limiting and logging for all JSON Patch operations to detect potential exploitation attempts.
8. Consider migrating to alternative, actively maintained JSON manipulation libraries such as Jackson JSON or JSON-P (Java EE standard) that may have more robust access control implementations.
Continue to monitor for updates from the json-patch project maintainers and apply patches when they become available.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.3 | N/A | 6.3 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | Low | N/A | Low |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
cve.org: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RC:R
Understanding the Weakness (CWE)
Confidentiality,Integrity
Technical Impact: Read Application Data; Modify Application Data
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.