Duplicate Advisory: SurrealDB: ES512 silently downgraded to ES384 due to jsonwebtoken crate limitation
Affects surrealdbSource GCVE Database
CVSS 4.3 Medium.
Data as of 7 Sep 2026, 14:23 UTC
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| crates.iosurrealdb | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.