PeerTube Path Traversal Vulnerability in HLS Endpoint Allows Arbitrary Playlist Leakage

Vulnerability

A path traversal vulnerability has been identified in PeerTube versions through 7.1.0, allowing authenticated users to leak contents of private HLS playlists (.m3u8 files) from the server. The issue arises from improper sanitization of the playlistName parameter in the HLS endpoint, enabling traversal out of the video's directory to access arbitrary .m3u8 files.

Impact

Exploitation of this vulnerability leads to unauthorized access and leakage of private HLS playlist files, potentially exposing sensitive video streaming data.

Reproduction

To reproduce this vulnerability, log into a PeerTube instance and upload a private video. Use the inspection tool to obtain the video's playlist UUID and .m3u8 filename. Then, upload a public video and copy its UUID. Finally, send a request to the HLS endpoint, using the public video's UUID to traverse to the private video's directory and access the .m3u8 file.

Remediation

Users can update to PeerTube version 7.1.1, where this vulnerability has been fixed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.