{"id":"GHSA-2jqm-x3hr-jjmq","revision":null,"records":[{"revision":"53f0699111be407f97d6d9922ccfe8a2","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63744","aliases":[],"title":"SurrealDB before 3.1.5 SSRF via JWKS URL Redirect","description":"SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS URL pointing to an allowlisted host that redirects to blocked internal addresses, bypassing network access controls.","state":0,"publishedAt":"2026-07-20T12:04:37.892+00:00","modifiedAt":"2026-07-28T01:05:39.475+00:00","affected":[{"ecosystem":"Vendor product","name":"surrealdb","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"surrealdb\",\n                    \"product\": \"surrealdb\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:cargo/surrealdb\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.1.5\"\n                        },\n                        {\n                            \"version\": \"3.1.5\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N","score":4.1,"severity":"MEDIUM"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h5rg-8p7f-47g2","https://www.vulncheck.com/advisories/surrealdb-before-ssrf-via-jwks-url-redirect"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63744","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63744","identifiers":["CVE-2026-63744"]},"retained":false,"historicalAffected":[]},{"revision":"76f7168ee81347808023a26360d57c91","observedAt":"2026-11-22T09:30:25.866+00:00","statement":{"source":"euvd","id":"EUVD-2026-45915","aliases":["CVE-2026-63744","GHSA-2jqm-x3hr-jjmq"],"title":"SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS …","description":"SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS URL pointing to an allowlisted host that redirects to blocked internal addresses, bypassing network access controls.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":5.1,"severity":null}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h5rg-8p7f-47g2","https://www.vulncheck.com/advisories/surrealdb-before-ssrf-via-jwks-url-redirect"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-45915","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 20, 2026, 12:04:37 PM","dateUpdated":"Jul 28, 2026, 1:05:39 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-45915","identifiers":["EUVD-2026-45915","CVE-2026-63744","GHSA-2jqm-x3hr-jjmq"]},"retained":false,"historicalAffected":[]},{"revision":"50ad02dff9214e99a71833c5ccef5883","observedAt":"2026-11-04T03:59:20.726+00:00","statement":{"source":"nvd","id":"CVE-2026-63744","aliases":[],"title":"SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS …","description":"SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS URL pointing to an allowlisted host that redirects to blocked internal addresses, bypassing network access controls.","state":0,"publishedAt":"2026-07-20T12:19:43.86+00:00","modifiedAt":"2026-07-22T15:45:46.84+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N","score":4.1,"severity":"MEDIUM"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h5rg-8p7f-47g2","https://www.vulncheck.com/advisories/surrealdb-before-ssrf-via-jwks-url-redirect"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-63744","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-918"],"productCriteria":["cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-20T12:19:43.860","lastModified":"2026-07-22T15:45:46.840"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-63744","identifiers":["CVE-2026-63744"]},"retained":false,"historicalAffected":[]},{"revision":"d5eb32048a5b42539c93b04fc44ddc90","observedAt":"2026-11-04T03:59:15.952+00:00","statement":{"source":"osv","id":"GHSA-h5rg-8p7f-47g2","aliases":["CVE-2026-63744"],"title":"SurrealDB: SSRF via JWKS URL — Redirect Following in JWT Key Fetch","description":"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.\n\n### Impact\n\nWhat an attacker **can** do:\n\n- With the **Owner** role at database level or above (the minimum required to run `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`.\n- Infer the existence and liveness of internal hosts and ports from response-timing differences (bounded by the 1-second fetch timeout).\n\nWhat it **can't** do:\n\n- Read the response: the fetch is blind — the body is only parsed as a JWKS, and a non-JWKS response surfaces as an opaque `InvalidAuth` error. Nothing is returned to the caller.\n- Modify data or affect availability (a single GET request).\n\n### Patches\n\nThe 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`.\n\n- Versions prior to 3.1.5 are vulnerable.\n\n### Workarounds\n\n- Restrict the Owner role to trusted operators.\n- Enforce egress filtering at the network layer (block link-local `169.254.0.0/16` and internal ranges) so redirect targets are unreachable regardless of in-process checks.\n- Configure access methods to use only trusted JWKS hosts that do not redirect, or use locally defined keys instead of a remote JWKS.\n\n### References\n\n- [SurrealDB Documentation — Capabilities](https://surrealdb.com/docs/surrealdb/security/capabilities)\n- [SurrealQL Documentation — DEFINE ACCESS](https://surrealdb.com/docs/surrealql/statements/define/access)\n- `fix(iam): prevent SSRF in JWKS fetch by re-validating redirect targets`","state":0,"publishedAt":"2026-06-19T22:10:45+00:00","modifiedAt":"2026-11-04T02:56:06.882806+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.1.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h5rg-8p7f-47g2","https://github.com/surrealdb/surrealdb"],"sourceUrl":"https://github.com/advisories/GHSA-h5rg-8p7f-47g2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-h5rg-8p7f-47g2","identifiers":["GHSA-h5rg-8p7f-47g2","CVE-2026-63744"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T01:35:04.8725245+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T01:35:04.8725245+00:00","lastSuccessAt":"2026-11-24T01:35:05.0385464+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:05.0385465+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85","complete":true,"records":430969,"lastAttemptAt":"2026-11-24T01:35:03.7450335+00:00","lastSuccessAt":"2026-11-24T01:35:03.7398709+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:03.7450335+00:00","snapshotPublishedAt":"2026-11-24T00:38:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-10f74064952f473d836d8bc449f20af6","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T01:36:17.9666641+00:00","lastSuccessAt":"2026-11-24T01:36:18.0601115+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:36:18.0601115+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T01:35:04.8725245+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T01:35:04.8725245+00:00","lastSuccessAt":"2026-11-24T01:35:05.0393131+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:05.0393132+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8c33077d0c904a2e95d5c5fe37c4221a","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T01:35:25.5402562+00:00","lastSuccessAt":"2026-11-24T01:35:25.536+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:25.536+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T01:35:04.3764802+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:04.3764802+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T01:35:03.8804046+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:03.8804046+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-24T01:35:04.7835805+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:04.7835805+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c41399423d276dca4b043be850730e8108fe6ab724d5bef1a99daeb4f8074e30","complete":true,"records":232938,"lastAttemptAt":"2026-11-24T01:35:04.2718053+00:00","lastSuccessAt":"2026-11-24T00:27:03.6308807+00:00","error":null,"lastVerifiedAt":"2026-11-24T01:35:04.2718053+00:00","snapshotPublishedAt":"2026-11-23T23:48:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}