Skip to main content

zrok Python SDK CVE-2026-45568

CRITICAL
Path Traversal (CWE-22)
2026-05-19 https://github.com/openziti/zrok GHSA-jh67-hwqw-m5r7
Share

Lifecycle Timeline

2
Source Code Evidence Fetched
May 19, 2026 - 16:00 vuln.today
Analysis Generated
May 19, 2026 - 16:00 vuln.today

DescriptionCVE.org

Summary

Alice exposes a Python SDK ProxyShare with a fixed target URL. Bob sends a request to the share with an absolute URL in the path. The Flask handler passes that path to urllib.parse.urljoin, which replaces Alice's configured target host with Bob's host and returns the server-side response to Bob.

Details

The Python SDK proxy route accepts every path under the share:

python
@app.route('/', defaults={'path': ''}, methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
@app.route('/<path:path>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
def proxy(path):

It constructs the outbound URL with urljoin and then sends the request:

python
url = urllib.parse.urljoin(self.target, path)
resp = requests.request(
    method=request.method,
    url=url,
    headers={key: value for (key, value) in request.headers
             if key.lower() not in HOP_BY_HOP_HEADERS},
    data=request.get_data(),
    cookies=request.cookies,
    allow_redirects=False,
    stream=True,
    verify=self.verify_ssl
)

When path is http://127.0.0.1:19190/metadata, urljoin(self.target, path) returns http://127.0.0.1:19190/metadata. The proxy sends the request to Bob's chosen URL rather than Alice's target.

AnalysisAI

Server-side request forgery in the zrok Python SDK's ProxyShare component (versions 0.4.47 through 1.1.11) allows remote unauthenticated users to redirect proxied requests to arbitrary hosts by submitting absolute URLs in the request path. Because the Flask handler concatenates user input with the configured target via urllib.parse.urljoin, an attacker (Bob) can replace the share owner's (Alice's) intended target with any host including internal cloud metadata endpoints, and the response is returned to the attacker. No public exploit identified at time of analysis, though the GitHub Security Advisory GHSA-jh67-hwqw-m5r7 documents the technique in detail.

Technical ContextAI

zrok is an open-source secure sharing platform built on OpenZiti, and its Python SDK exposes a ProxyShare class that wraps Flask to forward incoming requests to a fixed target URL. The vulnerability stems from a misuse of urllib.parse.urljoin, whose documented behavior is to discard the base URL's scheme and authority when the second argument is itself an absolute URL - for example, urljoin('https://alice.example/api/', 'http://127.0.0.1:19190/metadata') returns 'http://127.0.0.1:19190/metadata'. Flask's <path:path> converter forwards the raw, unsanitized request path to this join, so attacker-controlled absolute URLs flow directly into requests.request(). Mapped to CWE-22 (Path Traversal) in the advisory, the root cause is more precisely a URL parsing confusion that yields a Server-Side Request Forgery primitive against any host reachable from the proxy server, including loopback and cloud metadata services (e.g., 169.254.169.254, the 127.0.0.1:19190/metadata example in the advisory hints at zrok's own local metadata endpoint).

RemediationAI

No vendor-released patch identified at time of analysis - the advisory's fixed-in field is None and no tagged release in the affected range supersedes 1.1.11. Operators should monitor https://github.com/openziti/zrok/security/advisories/GHSA-jh67-hwqw-m5r7 for an upstream fix, and in the interim apply a local patch that rejects absolute URLs in the incoming path (validate that path does not begin with a scheme like http:// or https:// before passing to urljoin, or use urllib.parse.urlparse on the joined result and verify the host matches self.target's host). As a compensating control, take down or restrict ProxyShare instances that point at sensitive internal targets, place the proxy host on a network segment with no route to cloud metadata services (169.254.169.254) or internal admin endpoints, and require zrok share authentication so anonymous Bobs cannot reach the proxy - note that share authentication does not eliminate the SSRF, only narrows who can trigger it.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2026-55255 HIGH POC
8.4 Jun 19

Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing

Share

CVE-2026-45568 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy