Server-side Request Forgery (SSRF) Affecting surrealdb package, versions <3.1.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SURREALDB-17661103
  • published28 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

New CVE NOT AVAILABLE CWE-918  (opens in a new tab)

How to fix?

Upgrade surrealdb to version 3.1.5 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the JWKS URL fetch process. An attacker can cause the server to make unauthorized network requests by configuring a redirect from an allowlisted host to an otherwise-blocked internal address. This is only exploitable if the attacker has the Owner role at the database level or higher.

Workaround

This vulnerability can be mitigated by restricting the Owner role to trusted operators, enforcing egress filtering at the network layer to block internal ranges, or configuring access methods to use only trusted JWKS hosts that do not redirect or using locally defined keys.

References

CVSS Base Scores

version 4.0
version 3.1