/

CVE-2026-63306

Severity:

HIGH RISK

(8.6)

Server-Side Request Forgery (CWE-918) in StoatChat

CVE-2026-63306

Deferred

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Exposure and abuse of internal network resources

Severity:

HIGH RISK

(8.6)

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

StoatChat versions before 0.13.5 contain an unauthenticated server-side request forgery issue in the /proxy and /embed endpoints, which accept arbitrary URLs without proper network filtering.

By sending crafted URLs or abusing redirect chains, attackers can force the server to make requests to internal services or metadata endpoints, exposing internal infrastructure and sensitive information.

Affected context

The vulnerability appears in StoatChat deployments where:

  • The /proxy and /embed endpoints are exposed over HTTP(S)
  • These endpoints are reachable without authentication or strict authorization checks
  • The application server has network access to internal services, control planes, or cloud metadata endpoints
  • Outbound egress from the application environment is not tightly restricted

Under these conditions, user-supplied URLs are resolved and fetched by the server without sufficient validation of destination networks or hostnames.

Exploit preconditions

  • Attack surface: Publicly exposed /proxy and /embed HTTP endpoints
  • Required access: Network access to the StoatChat instance; no authentication is needed where the endpoints are open
  • Trigger point: User-controlled URL parameters that the server fetches on behalf of the requester
  • Why exploitation is possible: The server:
  • Accepts arbitrary URLs from clients
  • Does not enforce DNS resolution filtering or private/reserved IP range blocking
  • Follows redirect chains that can lead from external domains into internal networks or metadata services

Why this happens

This issue stems from treating user-supplied URLs as trusted destinations for server-initiated HTTP requests.

The /proxy and /embed endpoints act as generic HTTP clients without enforcing network-level or application-level constraints on where they can connect.

This aligns with CWE-918: Server-Side Request Forgery (SSRF), where an attacker induces the server to initiate requests to arbitrary locations, including internal services, because the application lacks:

  • Proper validation of URL schemes, hosts, and IP ranges
  • Controls on redirect behavior and final destination hosts
  • Isolation between user-facing proxy functionality and sensitive backend networks

Potential impact

  • Attackers may enumerate internal HTTP-based services and APIs by probing known or guessed hostnames and ports.
  • Attackers could fingerprint internal applications and platforms (e.g., admin panels, message brokers, databases with HTTP frontends).
  • Attackers can potentially access cloud provider instance metadata endpoints, which may expose credentials or tokens.
  • Attackers may perform limited actions against internal services that rely solely on network location for trust.
  • Attackers can abuse SSRF as a stepping stone in more complex intrusion chains, including lateral movement or privilege escalation.

General mitigation guidance

Effective mitigation generally involves constraining outbound requests initiated on behalf of users and hardening URL handling logic.

Common defensive patterns include:

  • Restricting allowed destinations to an explicit allowlist of trusted domains and paths.
  • Enforcing robust URL parsing and canonicalization, resolving DNS names and validating that resulting IPs do not fall in private, link-local, loopback, or metadata IP ranges.
  • Blocking or tightly controlling unsafe URL schemes (e.g., file:, gopher:) and enforcing HTTPS/HTTP-only policies as appropriate.
  • Disabling or limiting automatic redirect following, or re-validating each redirect target against the same safety rules.
  • Segmenting application servers from sensitive internal networks and metadata endpoints using network policies and firewalls.
  • Applying least-privilege credentials for any services accessible from the application, reducing the value of potential SSRF access.

How teams detect issues like this

Organizations can identify and monitor SSRF risks through a combination of review and tooling:

  • Static analysis rules looking for HTTP client calls (e.g., fetch, axios, requests, http.Client) that take direct user input as URLs or hosts.
  • Code review checklists that flag generic proxy or embed endpoints, especially when they accept arbitrary URLs or support redirects.
  • Security tests and dynamic scanners configured with SSRF-specific payloads to detect access to internal IP ranges or metadata endpoints.
  • Network-level monitoring and egress controls that alert on unexpected outbound connections from application hosts to internal or reserved address spaces.
  • Integration of automated security review tools in CI/CD to catch new or modified endpoints that perform server-side fetching of user-supplied URLs.

Sources

SourceLink
github.comgithub.com/stoatchat/stoatchat/security/advisories/GHSA-xhww-5g9p-vvq5
vulncheck.comvulncheck.com/advisories/stoatchat-before-unauthenticated-ssrf-via-proxy-and-embed-endpoints

Frequently asked

questions

Yes. As described, the /proxy and /embed endpoints can be abused over the network by unauthenticated attackers, provided those endpoints are exposed and reachable.

An attacker typically only needs the ability to send HTTP requests to the vulnerable StoatChat instance.

No valid user account is required when the endpoints are publicly accessible.

The safest pattern is to strictly control where server-side HTTP requests can go.

This usually means implementing an allowlist of permitted domains, blocking requests to private or reserved IP ranges, validating final redirect destinations, and removing or heavily restricting generic URL proxy functionality.

Preventing SSRF involves secure design and review:

  • Avoid designing generic proxy or embed endpoints that accept arbitrary URLs.
  • Apply consistent URL validation and IP range blocking libraries across services.
  • Enforce network-level egress controls to block application servers from reaching sensitive internal networks and metadata endpoints.
  • Include SSRF checks in security code reviews and automated testing pipelines before deployment.
Find out what's already
exploitable in your codebase.