SurrealDB has bypass of field-level SELECT permissions through JSON Patch `copy` and `move` with empty `from` (CVE-2026-63751)
Description
SurrealDB versions prior to 3.1.0 contain a vulnerability in the JSON Patch `copy` and `move` operations used in `UPDATE … PATCH` statements. Specifically, using an empty `from` pointer causes the entire record to be copied, bypassing field-level SELECT permissions and exposing protected field values under new field names. This vulnerability allows an authenticated user with update patch permissions to read any field in the targeted record regardless of select restrictions. The issue is limited to confidentiality impact and does not expose data from other records. Versions 3.1.0 and later include a patch that rejects empty `from` pointers, mitigating this issue.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SurrealDB allows modification of records using JSON Patch operations via `UPDATE … PATCH`. The `copy` operation with an empty `from` pointer was incorrectly handled as copying the entire record, including fields protected by field-level SELECT permissions. The permission filter only hid original protected field names, not the duplicated fields, resulting in unauthorized disclosure of protected data within the same record. This vulnerability affects versions prior to 3.1.0. A patch introduced in version 3.1.0 rejects empty `from` pointers for `copy` and `move` operations, preventing this bypass. Workarounds include restricting `UPDATE … PATCH` to users with full SELECT permissions on all fields or using explicit `SET` or `MERGE` clauses instead of JSON Patch.
Potential Impact
An authenticated user with permission to perform `UPDATE … PATCH` on a record can bypass field-level SELECT permissions and read any field's value within that record. The confidentiality of protected fields is compromised, but the impact is limited to the single targeted record and does not affect other records or data outside the record's scope. There is no impact on integrity or availability.
Mitigation Recommendations
A patch is available in SurrealDB version 3.1.0 and later that rejects empty `from` pointers in `copy` and `move` JSON Patch operations, effectively fixing the vulnerability. Users unable to upgrade should restrict `UPDATE … PATCH` operations to callers who already have SELECT permission on all fields of the target record, or switch to using explicit `SET` or `MERGE` clauses instead of JSON Patch operations to avoid the attack surface.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fpxg-5xmv-922m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63751"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2648acd9273b49fc9dcf
Added to database: 09/05/2026, 14:25:12 UTC
Last enriched: 09/07/2026, 14:09:27 UTC
Last updated: 10/18/2026, 18:48:22 UTC
Views: 20
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.