---
id: "CVE-2026-123095"
kind: "vulnerability"
aliases: ["CVE-2026-123095"]
title: "mpv: playlist URL newlines let attackers open local files or run code"
severity: "high"
cvss: 7.7
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["desktop", "media-player", "mpv", "package"]
not_affected_if: ["hook-removed", "local-files-only", "mpv-0.42.0-or-later"]
published_at: "2026-11-05T16:17:46+00:00"
first_seen_at: "2026-11-05T16:40:02+00:00"
updated_at: "2026-11-05T16:41:28+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123095", "first_seen_at": "2026-11-05T16:40:02+00:00"}]
exploit_sources: []
---

# mpv: playlist URL newlines let attackers open local files or run code

The bundled ytdl_hook script in mpv, a media player, accepts playlist URLs containing embedded newlines and bypasses its url_is_safe() check. An attacker who controls a feed or web page can make mpv open file:// or av:// inputs, which can read local files or load shared objects through ladspa for code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `mpv --version` and compare against the fixed release in the product ranges.
- Check whether the bundled ytdl_hook script is in use (mpv's youtube-dl/yt-dlp hook loaded by default).

## Fix

- mpv: `0.42.0`

## Timeline

- 2026-11-05T16:40:02+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-123095

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/mpv-0.29.0-before-0.42.0-playlist-entry-injection-via-ytdl-hook-newlines
- [fix] Patch: github.com https://github.com/mpv-player/mpv/commit/c3096515dcd26c14004f985538b5aa41db613856
- [fix] Release notes: github.com https://github.com/mpv-player/mpv/releases/tag/v0.42.0

## From the sources

mpv 0.29.0 before 0.42.0 contains a playlist injection vulnerability in the bundled ytdl_hook script that allows remote attackers to add unchecked entries by embedding newlines in playlist URLs. Attackers controlling a feed or page can bypass url_is_safe() to open file:// or av:// inputs, reading local files or loading shared objects via ladspa for code execution.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
