# CVE-2026-63751: SurrealDB field-level permission bypass in JSON Patch operations

Source: https://junglewise.ai/threats/cve-2026-63751-surrealdb-field-level-permission-bypass-in-json-patch-operations  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-20. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-63751 · Severity: medium · CVSS 4.3 · Published 2026-07-20

SurrealDB, a multi-model database, contains a security flaw that allows users with basic access to bypass data restrictions. By using specific database update commands, an authorized user can copy sensitive information they are not supposed to see into fields they can access. This could lead to the unauthorized exposure of protected record data, though it does not allow for full database takeover or service disruption.

Technologies: [surrealdb (crates.io)](https://junglewise.ai/threats/technologies/surrealdb). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2026-63751 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-63751 being exploited in the wild.

**How severe is CVE-2026-63751?** Medium severity, with a CVSS score of 4.3, published 20 July 2026.

**Which products and versions are affected?** surrealdb (crates.io) SEMVER:introduced=0,fixed=3.1.0.

**Is there a fix for CVE-2026-63751?** Yes. surrealdb (crates.io): upgrade to 3.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-63751 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-63751?** Check whether you run surrealdb (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- surrealdb (crates.io): upgrade to 3.1.0 or later

  ```sh
  cargo update -p surrealdb
  ```


## Technical details

A vulnerability in SurrealDB's implementation of JSON Patch operations (via UPDATE...PATCH or db.patch()) allows for field-level SELECT permission bypass. When performing a 'copy' or 'move' operation, providing an empty 'from' pointer causes the database to treat the source as the entire record. An authenticated attacker can duplicate all fields of a record—including those restricted by field-level permissions—into a new destination field that the attacker has permission to read. The fix, introduced in version 3.1.0, involves rejecting empty 'from' pointers during the parsing of JSON Patch operations.

## Affected products

- SurrealDB SurrealDB < 3.1.0

## Identifiers

- CVE-2026-63751
- GHSA-fpxg-5xmv-922m

## Timeline

- 2026-05-27: advisory: Initial GitHub Security Advisory published
- 2026-07-20: disclosed: NVD publication date

## References

- [https://github.com/surrealdb/surrealdb/security/advisories/GHSA-fpxg-5xmv-922m](https://github.com/surrealdb/surrealdb/security/advisories/GHSA-fpxg-5xmv-922m)
- [https://www.vulncheck.com/advisories/surrealdb-before-field-permission-bypass-via-json-patch](https://www.vulncheck.com/advisories/surrealdb-before-field-permission-bypass-via-json-patch)

## Related threats

- [SurrealDB use-after-free in KV backends via affinitypool spawn_local](https://junglewise.ai/threats/cve-2026-121417-surrealdb-before-3-3-0-contains-a-use-after-free-vulnerability)
- [SurrealDB JSON parser denial of service via uncontrolled recursion](https://junglewise.ai/threats/surrealdb-json-parser-denial-of-service-via-uncontrolled-recursion-3037f8a0)
- [SurrealDB ES512 algorithm silently downgraded to ES384](https://junglewise.ai/threats/surrealdb-es512-algorithm-silently-downgraded-to-es384-f0af29b8)
- [SurrealDB permission bypass via WHERE clause evaluation](https://junglewise.ai/threats/surrealdb-permission-bypass-via-where-clause-evaluation-afa6f001)
- [SurrealDB authorization bypass in KILL statement](https://junglewise.ai/threats/surrealdb-authorization-bypass-in-kill-statement-fc230d0f)
