SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation (CVE-2026-63761)
Description
SurrealDB versions prior to 3.1.0 silently downgrade the ES512 JWT algorithm to ES384 due to a limitation in the underlying jsonwebtoken crate, causing authentication handshake failures when using the correct P-521 key type. This does not allow token forgery or compromise data integrity, but results in failed authentication when external systems expect true ES512 signatures. The issue is fixed in SurrealDB 3.1.0, which blocks use of ES512 with clear errors and deprecation warnings. Users should update to 3.1.0 or later and reconfigure JWT access methods to supported algorithms such as ES384.
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 versions before 3.1.0 have a vulnerability (CVE-2026-63761) where configuring JWT access methods with ALGORITHM ES512 results in silent substitution to ES384 at internal conversion points. This occurs because the jsonwebtoken crate (v10.x) lacks ES512 support, defaulting to ES384 without error or warning. Users providing the correct P-521 key for ES512 experience authentication handshake failures due to curve mismatches with ES384 (which expects P-384). The vulnerability does not enable token forgery or compromise confidentiality or integrity, as ES384 remains cryptographically strong. SurrealDB 3.1.0 patches this by blocking new ES512 definitions with error messages and adding runtime deprecation warnings for existing ES512 configurations. Users are advised to reconfigure JWT access methods to supported algorithms like ES384.
Potential Impact
The vulnerability causes authentication handshake failures when using ES512 with the correct P-521 key type, and when tokens are verified by external systems expecting genuine ES512 signatures. There is no impact on token integrity, confidentiality, or the ability to forge tokens. The issue results in denial of authentication functionality rather than security compromise.
Mitigation Recommendations
A patch is available in SurrealDB version 3.1.0 that blocks the use of ES512 with clear error messages and adds deprecation warnings for existing ES512 configurations. Users should upgrade to version 3.1.0 or later. Additionally, users should review and update any DEFINE ACCESS statements specifying ALGORITHM ES512 to use supported algorithms such as ES384 with the appropriate P-384 key pair.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fwg2-gr34-q3w8
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63761"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2644acd9273b49fc9c32
Added to database: 09/05/2026, 14:25:08 UTC
Last enriched: 09/07/2026, 14:23:41 UTC
Last updated: 10/20/2026, 18:48:22 UTC
Views: 23
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.