Vulnerability · Published Jun 23, 2026 · Assigned by GitHub_M

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

High 8.3

In plain English

A high-severity security flaw in yt-dlp from yt-dlp. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)0.7%top 48.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12yt-dlpno fix listedDEBIAN-CVE-2026-50023
Debian:13yt-dlpno fix listedDEBIAN-CVE-2026-50023
Debian:14yt-dlp2026.06.09-1DEBIAN-CVE-2026-50023
PyPIyt-dlp2026.6.9GHSA-c6mh-fpjc-4pr3
PyPIyt-dlp2026.6.9PYSEC-2026-3430
Ubuntu:22.04:LTSyt-dlpno fix listedUBUNTU-CVE-2026-50023
Ubuntu:24.04:LTSyt-dlpno fix listedUBUNTU-CVE-2026-50023
Ubuntu:25.10yt-dlpno fix listedUBUNTU-CVE-2026-50023
Ubuntu:26.04:LTSyt-dlpno fix listedUBUNTU-CVE-2026-50023
Ubuntu:26.10yt-dlpno fix listedUBUNTU-CVE-2026-50023

Affected products (as reported)

VendorProductVersions
yt-dlp yt-dlp < 2026.06.09

Weakness: CWE-641 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

References