Back to list

SurrealDB: SSRF via JWKS URL — Redirect Following in JWT Key Fetch — GHSA-H5RG-8P7F-47G2

GitHub · GitHub · GHSA-H5RG-8P7F-47G2

ID
GHSA-H5RG-8P7F-47G2
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
4.1

Summary

SurrealDB fetches the JWKS document for a JWT or record access method using a bare `reqwest` client that follows HTTP redirects by default. The network capability check in `core/src/iam/jwks.rs` (`check_capabilities_url`) is applied only to the originally configured URL; redirect targets are not re-validated. An `--allow-net`-permitted JWKS host that returns a `3xx Location` can therefore redirect the request to an…

Product

rust: surrealdb

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories