/

CVE-2026-57566

Severity:

CRITICAL RISK

(9.3)

Server-Side Request Forgery (CWE-918) in Readest OPDS Proxy

CVE-2026-57566

Deferred

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Unauthorized server-side requests and potential exposure of internal or cloud metadata responses

Severity:

CRITICAL RISK

(9.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Readest's unauthenticated OPDS proxy route accepts a caller-controlled URL and fetches it server-side without adequate destination or redirect restrictions. An attacker may use it to reach internal services or retrieve sensitive responses when the deployment's network allows access, while the route also reflects upstream status and response content.

Affected context

The issue affects Readest deployments using the unauthenticated /api/opds/proxy route. The route can make outbound requests based on caller-supplied URLs and does not sufficiently restrict schemes or destinations, including private, loopback, link-local, and metadata hosts. Automatic redirects are not revalidated, and caller-controlled outbound headers and authorization values are accepted. Internal-network impact depends on the deployment environment; Cloudflare Workers restrict access to some private and link-local destinations, but the public fetch-and-reflect behavior remains.

Exploit preconditions

  • Attack surface: The publicly reachable /api/opds/proxy endpoint
  • Required access: No authentication is required to invoke the route
  • Attacker-controlled inputs: The target URL and outbound headers, including authorization values
  • Trigger point: The server fetches the supplied URL and returns the upstream status and response body
  • Why exploitation is possible: Destination schemes and addresses are not adequately restricted, and redirect destinations are not revalidated. Access to internal resources depends on the server's network environment.

Why this happens

The route performs server-side requests using a URL and headers supplied by the caller without enforcing a sufficiently strict destination policy. It also follows redirects without revalidating their destinations. This is CWE-918: Server-Side Request Forgery, in which an application can be induced to make requests to destinations chosen by an external party.

Potential impact

  • An attacker may use the endpoint as an open request proxy.
  • Deployments with internal-network access could expose internal-service responses.
  • Cloud metadata or other sensitive responses could be retrieved where the runtime can reach those destinations.
  • Caller-controlled headers could cause requests to be made with supplied authorization values.
  • Upstream response content and status could be disclosed through the proxy.

General mitigation guidance

Common defensive patterns focus on restricting what the server can request and what the proxy can relay:

  • Use a strict allowlist of permitted destinations and schemes, with secure-by-default rejection of unrecognized targets.
  • Resolve and validate destination addresses, block private, loopback, link-local, and metadata ranges, and repeat validation after every redirect.
  • Avoid forwarding caller-controlled authorization values or arbitrary outbound headers; construct only the minimum required headers.
  • Limit or disable redirect following where it is not needed, and enforce outbound network controls as an additional boundary.
  • Return only necessary upstream data and run the service with least-privilege network access.

How teams detect issues like this

  • Use static analysis to identify server-side HTTP clients that consume request parameters or other untrusted URLs.
  • Review proxy code for missing scheme and destination allowlists, unchecked DNS resolution, and redirect handling that bypasses destination checks.
  • Look for forwarding of caller-controlled headers or authorization values and for routes that expose upstream response bodies.
  • Apply egress policies that restrict application workloads to necessary destinations, and monitor proxy requests for unusual targets or redirect chains.
  • Automated code review tools can help flag SSRF-prone request flows for manual validation.

Sources

SourceLink
github.comgithub.com/readest/readest/commit/495783d04516d05b2eb10f8f8bad297d436b36de
github.comgithub.com/readest/readest/pull/4638
github.comgithub.com/readest/readest/releases/tag/v0.11.10
github.comgithub.com/readest/readest/security/advisories/GHSA-c7mm-g2j2-98cx

Frequently asked

questions

Yes. The route is unauthenticated, so a remote caller can supply a URL. Access to internal resources depends on the deployment's network restrictions.

No authentication is required to invoke the endpoint. The attacker does need network access to the public route.

Allow requests only to explicitly permitted destinations, validate the destination again after redirects, and avoid forwarding caller-controlled headers or authorization values.

Treat user-supplied URLs as untrusted, apply destination allowlists and outbound network controls, and review server-side request flows for redirect and header-forwarding behavior.

Find out what's already
exploitable in your codebase.