Description
SurrealDB before 3.1.0 silently substitutes the ES384 algorithm when a JWT access method is configured with ALGORITHM ES512 (DEFINE ACCESS ... TYPE JWT ALGORITHM ES512), because the underlying jsonwebtoken crate (v10.x) has no ES512 variant and the mapping defaults to ES384 without any error, warning, or log message. Users who supply the correct P-521 key for ES512 experience authentication handshake failures due to the curve mismatch with ES384 (which expects P-384), and tokens are rejected by external systems expecting genuine ES512 signatures. The flaw cannot be used to forge tokens or compromise data confidentiality or integrity, as ES384 remains cryptographically strong.
Published: 2026-07-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 3.1.0 contain a defect in the JWT access method configuration that silently substitutes the ES512 algorithm with ES384 when a user configures ALGORITHM ES512. Because the underlying jsonwebtoken crate has no ES512 variant, the mapping defaults to ES384 without emitting any error, warning, or log message. Users who supply the appropriate P‑521 key for ES512 therefore experience authentication handshake failures due to the curve mismatch with ES384, which expects a P‑384 key, and the generated tokens are rejected by external systems that expect genuine ES512 signatures. The flaw does not allow an attacker to forge tokens or compromise the confidentiality or integrity of data, as ES384 remains cryptographically strong. The primary consequence is that legitimate authentication attempts may fail or tokens may be invalidated by third‑party consumers.

Affected Systems

The affected product is SurrealDB. All releases before version 3.1.0 are impacted, regardless of the configuration language used for JWT access methods. Upgrading to any 3.1.0 or later release eliminates the silent algorithm downgrade. No other products or vendors are listed as affected.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog. The likelihood of exploitation is low because the issue is purely a configuration error that leads to authentication failures rather than privilege escalation or data compromise. An attacker would need to have an understanding of the JWT configuration and would not gain any additional authority. Based on the description, the likely attack vector is through misconfiguration during deployment rather than via remote code execution or other direct exploitation pathways.

Generated by OpenCVE AI on July 30, 2026 at 19:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official SurrealDB 3.1.0 or later update to eliminate the silent algorithm downgrade, mitigating CWE‑327 weak-cryptography risk.
  • Verify JWT configuration files to ensure that the ALGORITHM value matches the key type and external consumer expectations; correct any mismatches to avoid unintended algorithm downgrades associated with CWE‑327.
  • If updating is unfeasible, explicitly configure the system to use ES384 and a compatible P‑384 key, or disable the ES512 setting, to maintain cryptographic strength and adhere to CWE‑327 mitigation best practices.

Generated by OpenCVE AI on July 30, 2026 at 19:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SurrealDB before 3.1.0 silently substitutes the ES384 algorithm when a JWT access method is configured with ALGORITHM ES512 (DEFINE ACCESS ... TYPE JWT ALGORITHM ES512), because the underlying jsonwebtoken crate (v10.x) has no ES512 variant and the mapping defaults to ES384 without any error, warning, or log message. Users who supply the correct P-521 key for ES512 experience authentication handshake failures due to the curve mismatch with ES384 (which expects P-384), and tokens are rejected by external systems expecting genuine ES512 signatures. The flaw cannot be used to forge tokens or compromise data confidentiality or integrity, as ES384 remains cryptographically strong.
Title SurrealDB before 3.1.0 Algorithm Downgrade via ES512
Weaknesses CWE-327
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:51.441Z

Reserved: 2026-07-18T12:30:08.354Z

Link: CVE-2026-63761

cve-icon Vulnrichment

Updated: 2026-07-20T13:48:12.149Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses
  • CWE-327

    Use of a Broken or Risky Cryptographic Algorithm