CVE-2025-71398

SurrealDB before 2.2.2 SSRF via HTTP Redirect Bypass

Published Jul 18, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
SurrealDB before 2.2.2 fails to validate HTTP redirects in http functions, allowing authenticated users to bypass deny-net restrictions by redirecting to blocked IP addresses. Attackers can host a public server that redirects to denied network targets, enabling server-side request forgery to access internal endpoints and retrieve sensitive information.

Analysis

AI-generated

Technical impact

SurrealDB before 2.2.2 does not validate HTTP redirects in its http functions, enabling an attacker who already has authenticated access to redirect the server to a blocked IP address. This subverts deny‑net restrictions and produces a server‑side request forgery. The attacker can then access internal endpoints and read sensitive data, reflecting a medium‑severity vulnerability classified as CWE‑918.

Affected Systems

All installations of SurrealDB earlier than version 2.2.2 are vulnerable. The flaw affects any instance that uses the http function to contact external services. No additional configuration information is supplied. The vendor is SurrealDB.

Risk and Exploitability

The CVSS score of 5.8 suggests medium overall severity. The EPSS score of less than 1% indicates that current exploitation likelihood is low, and the flaw is not listed in the CISA KEV catalog. Exploitation requires authenticated access and the ability to trigger an http function; once a redirect to a private network target is delivered, the SurrealDB server will perform a request to that target, enabling data exfiltration. Attackers would need to host a publicly reachable server that issues the redirect.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 2.2.2 or later, which adds redirect validation for http functions.
  • If an upgrade is not immediately possible, restrict the http function to only trusted or whitelisted URLs, and limit its permissions to privileged users.
  • Add network segmentation or firewall rules that prohibit outbound connections from the SurrealDB process to internal IP ranges, providing an additional barrier against SSRF.

Generated by OpenCVE AI on July 30, 2026 at 23:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5q9x-554g-9jgg SurrealDB bypass of deny-net flags via redirect results in server-side request forgery (SSRF)
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L'}

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SurrealDB before 2.2.2 fails to validate HTTP redirects in http functions, allowing authenticated users to bypass deny-net restrictions by redirecting to blocked IP addresses. Attackers can host a public server that redirects to denied network targets, enabling server-side request forgery to access internal endpoints and retrieve sensitive information.
Title SurrealDB before 2.2.2 SSRF via HTTP Redirect Bypass
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jul 18, 2026, 12:38 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 29, 2026, 9:17 PM