Skip to main content
VulnerabilityPublished Updated

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

Affects surrealdbSource GCVE Database

0

CVSS 4.3 Medium.

Data as of 7 Sep 2026, 14:23 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

What to do

Affected software

ProductAffectedFixed in
crates.iosurrealdbAffected–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.

References

Community reviews

Loading reviews…