Skip to main content

Duplicate Advisory: SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation

0
Medium
Published: 07/20/2026 (07/20/2026, 12:33:11 UTC)
Source: GCVE Database
Product: surrealdb

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Affected software

crates.ioghsa
surrealdb

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 14:23:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses