Duplicate Advisory: SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation
Description
SurrealDB versions before 3.1.0 silently downgrade the ES512 JWT algorithm to ES384 due to a limitation in the underlying jsonwebtoken crate. This causes authentication handshake failures when ES512 keys are used, as the expected cryptographic curve does not match. The issue does not allow token forgery or compromise data confidentiality or integrity because ES384 remains cryptographically strong.
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 prior to version 3.1.0 has a vulnerability where configuring JWT access with the ES512 algorithm results in a silent fallback to the ES384 algorithm. This behavior stems from the jsonwebtoken crate (v10.x) lacking an ES512 variant, causing the system to default to ES384 without any error or warning. Consequently, users providing a P-521 key for ES512 face authentication failures due to curve mismatches, and tokens signed with ES512 are rejected by external systems expecting genuine ES512 signatures. The flaw does not enable token forgery or compromise the cryptographic strength of the system since ES384 remains secure.
Potential Impact
The vulnerability leads to authentication handshake failures and token rejection in systems expecting ES512 signatures. There is no impact on data confidentiality or integrity, and no ability to forge tokens. Availability impact is limited to authentication failures.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid configuring JWT access with ES512 on affected SurrealDB versions prior to 3.1.0 or monitor for updates that address this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gw59-x2xr-wwvr
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2644acd9273b49fc9c34
Added to database: 09/05/2026, 14:25:08 UTC
Last enriched: 09/07/2026, 14:23:35 UTC
Last updated: 10/01/2026, 23:09:38 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.
External Links
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.