Path traversal in Plex Media Server via unsanitized url parameter

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-96651?

CVE-2026-96651 is a vulnerability classified as Improper Limitation of a Pathname to a Restricted Directory, affecting Media Server (affected versions: < 1.43.3.10861). This vulnerability is rated High, with a CVSS score of 7.1. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Plex Media Server before 1.43.3.10861 builds a file path from the url parameter without checking it for../ sequences, allowing path traversal via '/system/agents/media/get'. A remote attacker with a valid session token could read any file that the target user can access. This access includes the PlexOnlineToken, which grants control of the Plex account and server. A LAN-adjacent attacker with a client-supplied X-Forwarded-For header could exploit the same issue.

Affected products and scope

All versions of Plex Media Server prior to the patched release are affected. The vulnerability applies to any deployment where an attacker can obtain a valid session token, whether through a legitimate low-privilege account or through the LAN-adjacent header spoofing path. There is no indication that specific configurations or deployment topologies are exempt beyond what the two attack paths imply.

Technical details

The weakness is improper limitation of a pathname to a restricted directory (CWE-22). The endpoint at fault is the media get route, reachable at a path under the system agents. The server takes the url query parameter, concatenates it into a filesystem path, and does not validate or normalise the result before opening the file. Because no check is performed for parent-directory sequences, an attacker who controls the parameter can escape the intended directory and request any file on the filesystem that the process can read.

Exploitability

The vulnerability is reachable over the network. It requires a valid session token, which means the attacker must already have some form of authenticated access to the server (for example, a low-privilege user account). No user interaction is needed. A second path exists for an attacker on the same local network who can supply a spoofed X-Forwarded-For header to satisfy the server's client-identity check. No public exploit or active exploitation has been reported.

Technical impact

An attacker gains arbitrary file read as the user running the Plex Media Server process. The practical ceiling is the full set of files that user can access on the host. The most sensitive target is the PlexOnlineToken, which provides account-level control over both the Plex cloud account and the local server. There is no integrity or availability impact: the attacker reads files but does not modify or delete them.

Business impact

An attacker who obtains a valid session token on a Plex server can read any file the server process has access to. The most consequential file is the PlexOnlineToken, which gives the attacker persistent control over the Plex account and server. For an organisation, this means an attacker could pivot from a low-privilege user session to full account compromise, potentially exposing media libraries, authentication credentials stored on the host, or other sensitive data readable by the server process. Any deployment where untrusted users can obtain a session token is at risk.

Remediation

Update Plex Media Server to the fixed release. The patch corrects the path construction logic in the media agent endpoint. If immediate update is not possible, restrict access to the server so that only trusted, authenticated users can reach it, and ensure that the server process runs under a user account with minimal file-system permissions to limit the blast radius of a successful read.

Detection

In access logs, look for requests to the media get endpoint where the url parameter contains sequences of dot-dot-slash or URL-encoded equivalents. Correlate with the identity of the requesting session to identify whether an unexpectedly low-privilege account is making such requests. On the server host, monitor for unusual reads of the PlexOnlineToken file by the server process, particularly from request-handling threads. Network monitoring can flag X-Forwarded-For headers from clients that should not be setting that header (i.e., clients not behind a known proxy).

Sources (8)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.