Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-fwg2-gr34-q3w8

GHSA-fwg2-gr34-q3w8: SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation

July 1, 2026

When a user configures ALGORITHM ES512 for any JWT access method (DEFINE ACCESS ... TYPE JWT ALGORITHM ES512), SurrealDB silently substitutes ES384 at all four internal algorithm conversion points. This occurs because the underlying jsonwebtoken crate (v10.x) does not include an ES512 algorithm variant, so the mapping defaults to ES384 without raising an error, warning, or log message.

Users who provide the correct P-521 key type for ES512 will experience authentication handshake failures due to the curve mismatch with ES384 (which expects P-384).

References

  • github.com/advisories/GHSA-fwg2-gr34-q3w8
  • github.com/surrealdb/surrealdb/commit/bd043d73dad583219d7df2b91f81ab0054c53730
  • github.com/surrealdb/surrealdb/pull/7226
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-fwg2-gr34-q3w8

Code Behaviors & Features

Detect and mitigate GHSA-fwg2-gr34-q3w8 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.0

Fixed versions

  • 3.1.0

Solution

Upgrade to version 3.1.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm

Source file

cargo/surrealdb/GHSA-fwg2-gr34-q3w8.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Jul 2026 12:17:24 +0000.