CVE-2026-63744Medium· 4.1▾ SunlitSurrealDB: SSRF via JWKS URL — Redirect Following in JWT Key Fetch
▾ Sunlit zone — Low / medium · no exploitation signal
impact 22.5 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.3%
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 address the allowlist was meant to block, resulting in a server-side request forgery (SSRF). The protected HttpClient used by http::* functions re-checks every redirect hop and was hardened in 3.1.0, but the JWKS fetcher uses its own client and was not covered.
What an attacker can do:
DEFINE ACCESS ... TYPE JWT URL or TYPE RECORD ... WITH JWT URL), point an access method at an allowlisted host they control and redirect the server's GET to an otherwise-blocked target — cloud metadata, loopback, internal services — bypassing --allow-net/--deny-net.What it can't do:
InvalidAuth error. Nothing is returned to the caller.The JWKS fetcher now applies a redirect policy that re-validates every redirect target against the configured network capabilities (mirroring check_capabilities_url) and caps redirects at max_http_redirects.
169.254.0.0/16 and internal ranges) so redirect targets are unreachable regardless of in-process checks.fix(iam): prevent SSRF in JWKS fetch by re-validating redirect targetssurrealdb < 3.1.5Upgrade to a patched release:
surrealdb 3.1.5Connected by shared product, vendor, weakness, or advisory.
CVE-2026-63741Medium· 6.5SurrealDB: USE NS/DB implicit creation bypasses DEFINE authorization
CVE-2026-63759Medium· 6.5SurrealDB vulnerable to Denial of Service due to nested types annotations
CVE-2026-63747High· 7.5SurrealDB has unauthenticated remote DoS via malformed RPC `use` call
CVE-2026-63737Medium· 6.5SurrealDB: Denial of Service via deep operator chains
CVE-2026-63739High· 7.7SurrealDB: Arbitrary file read via DEFINE ANALYZER mapper() filter
CVE-2026-63309Medium· 4.3SurrealDB: Indexed ORDER BY leaks the value ordering of a SELECT-restricted field