# CVE-2026-63761: SurrealDB before 3.1.0 Algorithm Downgrade via ES512

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-01T20:23:01.000Z
- Modified: 2026-10-08T16:17:28.117Z
- Also known as: GHSA-fwg2-gr34-q3w8
- Weaknesses: CWE-327
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

SurrealDB before 3.1.0 silently substitutes the ES384 algorithm when a JWT access method is configured with ALGORITHM ES512 (DEFINE ACCESS ... TYPE JWT ALGORITHM ES512), because the underlying jsonwebtoken crate (v10.x) has no ES512 variant and the mapping defaults to ES384 without any error, warning, or log message. Users who supply the correct P-521 key for ES512 experience authentication handshake failures due to the curve mismatch with ES384 (which expects P-384), and tokens are rejected by external systems expecting genuine ES512 signatures. The flaw cannot be used to forge tokens or compromise data confidentiality or integrity, as ES384 remains cryptographically strong.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 3.1.0 (not affected: 3.1.0)
- surrealdb (crates.io): before 3.1.0

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-fwg2-gr34-q3w8> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-algorithm-downgrade-via-es512> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63761> (advisory)
- <https://github.com/surrealdb/surrealdb/pull/7226> (web)
- <https://github.com/surrealdb/surrealdb/commit/bd043d73dad583219d7df2b91f81ab0054c53730> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2026-63761](https://www.cve.org/CVERecord?id=CVE-2026-63761), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-fwg2-gr34-q3w8](https://github.com/advisories/GHSA-fwg2-gr34-q3w8), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2026-63761](https://nvd.nist.gov/vuln/detail/CVE-2026-63761), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-63761 · Whole record: https://cve.day/CVE-2026-63761.json · Rebuilt by cve.day 2026-11-25T22:59:29.213Z
