CVE-2026-50023 json
yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519)
published 2026-06-16 4 mo ago modified 2026-07-20 3 mo ago also EUVD-2026-38493 , GHSA-c6mh-fpjc-4pr3 , PYSEC-2026-3430
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi yt-dlp 2026.6.9
- youtube-dlc_project youtube-dlc 2026.06.09
- yt-dl youtube-dl 2026.06.09
- yt-dlp-nightly-builds_project yt-dlp-nightly-builds 2026.06.09
- yt-dlp_project yt-dlp 2026.06.09
- yt-dlp Debian 14 2026.06.09-1
debian advisories DEBIAN-CVE-2026-50023
- yt-dlp openSUSE Leap 16.0 2026.06.09-bp160.1.1
- yt-dlp openSUSE Tumbleweed 2026.06.09-1.1
opensuse advisories openSUSE-SU-2026:21163-1openSUSE-SU-2026:11019-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-50023 updated cvss 9.6
yt-dlp: dangerous file type creation via insufficient filename sanitization (bypass of CVE-2024-38519)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.66% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-c6mh-fpjc-4pr3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | yt-dlp | <2026.6.9 |
2026.6.9 |
Affected products
- yt-dlp yt-dlp
Classification
- Weakness
-
- CWE-641 Improper Restriction of Names for Files and Other Resources
References
-
github.com
/yt-dlp/yt-dlp/commit/e578e265f7c6ca94a74b30e0d8d6196a4d19fb6a
web, patch
-
github.com
/yt-dlp/yt-dlp/security/advisories/GHSA-c6mh-fpjc-4pr3
web, exploit, mitigation, patch, vendor-advisory
-
github.com
/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.09.230517
web, product, release-notes
-
github.com
/yt-dlp/yt-dlp/releases/tag/2026.06.09
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-38519
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-50023
advisory
-
github.com
/advisories/GHSA-c6mh-fpjc-4pr3
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/yt-dlp/PYSEC-2026-3430.yaml
web
-
github.com
/yt-dlp/yt-dlp
package
-
pypi.org
/project/yt-dlp
web, package
Sources
- CVE List CVE-2026-50023
- GitHub Advisory GHSA-c6mh-fpjc-4pr3
- NVD CVE-2026-50023
- OSV PYSEC-2026-3430
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.