Skip to content
OpenAdvisories
High · 8.3 CVE-2026-50023 EUVD-2026-38493GHSA-c6mh-fpjc-4pr3PYSEC-2026-3430

yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519)

Published Jun 23, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

Description

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, a vulnerability exists in yt-dlp that allows a remote attacker to write arbitrary OS-shortcut files (such as .desktop, .url, .webloc) to the user's filesystem, bypassing the remediation for CVE-2024-38519. The allowlist explicitly included the unsafe extensions .desktop, .url, and .webloc so that the functionality of the --write-link option (and its variants) could be preserved. These allowlist inclusions can be exploited by an attacker to write malicious OS-shortcut files in the context of a media or subtitles download. This vulnerability is fixed in 2026.06.09.

Affected products

VendorProductAffectedFixed
yt-dlp yt-dlp < 2026.06.09 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 yt-dlp 2026.06.09-1 —
Debian 13 yt-dlp No fix yet —
Debian 12 yt-dlp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 yt-dlp No fix yet —
Ubuntu 26.04 LTS yt-dlp No fix yet —
Ubuntu 25.10 yt-dlp No fix yet —
Ubuntu 24.04 LTS yt-dlp No fix yet —
Ubuntu 22.04 LTS yt-dlp No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed yt-dlp 2026.06.09-1.1 openSUSE-SU-2026:11019-1
openSUSE Leap 16.0 yt-dlp 2026.06.09-bp160.1.1 openSUSE-SU-2026:21163-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI yt-dlp < 2026.6.9 2026.6.9 GHSA-c6mh-fpjc-4pr3

Advisories 2

References