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

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T20:59:42.000Z
- Modified: 2026-07-20T14:00:25.569Z
- Also known as: GHSA-c6mh-fpjc-4pr3, PYSEC-2026-3430
- Weaknesses: CWE-641
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- yt-dlp yt-dlp: < 2026.06.09
- yt-dlp (PyPI): before 2026.6.9
- yt-dlp_project yt-dlp: before 2026.06.09

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-c6mh-fpjc-4pr3> (exploit, mitigation, patch, vendor-advisory, web)
- <https://github.com/yt-dlp/yt-dlp/commit/e578e265f7c6ca94a74b30e0d8d6196a4d19fb6a> (patch, web)
- <https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.09.230517> (product, release-notes, web)
- <https://github.com/yt-dlp/yt-dlp/releases/tag/2026.06.09> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38519> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50023> (advisory)
- <https://github.com/advisories/GHSA-c6mh-fpjc-4pr3> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/yt-dlp/PYSEC-2026-3430.yaml> (web)
- <https://github.com/yt-dlp/yt-dlp> (package)
- <https://pypi.org/project/yt-dlp> (package, web)

## Sources

- CVE List: [CVE-2026-50023](https://www.cve.org/CVERecord?id=CVE-2026-50023), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-c6mh-fpjc-4pr3](https://github.com/advisories/GHSA-c6mh-fpjc-4pr3), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-50023](https://nvd.nist.gov/vuln/detail/CVE-2026-50023), Public domain, modified 2026-06-26
- PyPA Advisory Database: [PYSEC-2026-3430](https://osv.dev/vulnerability/PYSEC-2026-3430), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-50023 · Whole record: https://cve.day/CVE-2026-50023.json · Rebuilt by cve.day 2026-11-25T22:59:25.482Z
