Every CVE Search/ Get API key

CVE-2026-50574

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

8.3 HighFix available

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.46%Up 0.4 points since Jun 12, 2026
90%50%10%1%

What each source reports

CVE List Score used 8.3

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
CVE-2026-50574
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-74
Updated
2026-11-02
EUVDEUVD-2026-38495 8.3

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
EUVD-2026-38495
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-vx4q-3cr2-7cg2 8.3

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

Summary

If aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp.

Details

When downloading a fragmented manifest format such as an HLS or DASH stream, yt-dlp first extracts a list of all fragment URLs from the stream's manifest. If the user has selected aria2c as an external downloader, yt-dlp then constructs an input file for aria2c from the fragment URL list and passes its filepath as the argument to aria2c's -i option.

aria2c's -i (or --input-file) option allows for downloading a list of URIs from the given text file. The text file must be formatted as a list of URIs separated by newlines. aria2c's format permits configuration lines for each URI, which can contain command-line options to be given to aria2c. These optional lines follow each URI line and are signified only by leading whitespace. yt-dlp constructs the input file with these optional lines so that it's able to specify the output filename for each fragment using the out= option.

yt-dlp's utilization of the aria2c input file format presents two known attack vectors:

  1. An attacker can craft a malicious DASH manifest with one or more fragment URLs that contain 
, which is the HTML escape sequence for a newline. yt-dlp interprets this escape sequence as an actual newline character when writing the fragment URLs to the aria2c input file, which allows for an attacker to inject arbitrary aria2c options into the input file. With option injection, the attacker can achieve arbitrary file writes. This attack vector is possible only via downloads of DASH formats, since their manifests are an XML format which necessitates unescaping of HTML special characters.

  2. An attacker can craft a malicious metadata response where the data parsed by yt-dlp as the title field (or any other metadata field that the user includes in their output template) contains strategically placed newlines and magnet URIs. If the user has passed the --no-windows-filename option to disable sanitization of newlines in output filenames, the attacker is able to achieve arbitrary file writes by injecting arbitrary URIs and options into the aria2c input file. This attack vector is possible via downloads of both HLS and DASH formats.

On Windows, attacker-controlled file writes can lead to immediate arbitrary code execution: the attacker could write a malicious executable file named ffmpeg.exe to the current working directory, and it could be invoked during the postprocessing stage if the user's yt-dlp.exe also resides in the current working directory.

On all platforms, attacker-controlled file writes can lead to arbitrary code execution on repeat invocations of yt-dlp: the attacker could write a yt-dlp configuration file (yt-dlp.conf) to the current working directory containing a malicious --exec argument.

Patches

yt-dlp version 2026.06.09 fixes this issue by removing support for downloading fragmented manifest formats with aria2c.

Workarounds

It is recommended to upgrade yt-dlp to version 2026.06.09 as soon as possible.

For users who are not able to upgrade:

  • Add --downloader dash,m3u8:native to your yt-dlp command.
Record
GHSA-vx4q-3cr2-7cg2
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-74
Updated
2026-11-02
NVD 8.3

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
CVE-2026-50574
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS 3.1
9.6 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-74
Updated
2026-11-02
OSV 8.3

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
CVE-2026-50574
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-74
Updated
2026-11-02
OSVDEBIAN-CVE-2026-50574 9.6

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
DEBIAN-CVE-2026-50574
CVSS 3.1
9.6 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVGHSA-vx4q-3cr2-7cg2 8.3

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

Summary

If aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp.

Details

When downloading a fragmented manifest format such as an HLS or DASH stream, yt-dlp first extracts a list of all fragment URLs from the stream's manifest. If the user has selected aria2c as an external downloader, yt-dlp then constructs an input file for aria2c from the fragment URL list and passes its filepath as the argument to aria2c's -i option.

aria2c's -i (or --input-file) option allows for downloading a list of URIs from the given text file. The text file must be formatted as a list of URIs separated by newlines. aria2c's format permits configuration lines for each URI, which can contain command-line options to be given to aria2c. These optional lines follow each URI line and are signified only by leading whitespace. yt-dlp constructs the input file with these optional lines so that it's able to specify the output filename for each fragment using the out= option.

yt-dlp's utilization of the aria2c input file format presents two known attack vectors:

  1. An attacker can craft a malicious DASH manifest with one or more fragment URLs that contain 
, which is the HTML escape sequence for a newline. yt-dlp interprets this escape sequence as an actual newline character when writing the fragment URLs to the aria2c input file, which allows for an attacker to inject arbitrary aria2c options into the input file. With option injection, the attacker can achieve arbitrary file writes. This attack vector is possible only via downloads of DASH formats, since their manifests are an XML format which necessitates unescaping of HTML special characters.

  2. An attacker can craft a malicious metadata response where the data parsed by yt-dlp as the title field (or any other metadata field that the user includes in their output template) contains strategically placed newlines and magnet URIs. If the user has passed the --no-windows-filename option to disable sanitization of newlines in output filenames, the attacker is able to achieve arbitrary file writes by injecting arbitrary URIs and options into the aria2c input file. This attack vector is possible via downloads of both HLS and DASH formats.

On Windows, attacker-controlled file writes can lead to immediate arbitrary code execution: the attacker could write a malicious executable file named ffmpeg.exe to the current working directory, and it could be invoked during the postprocessing stage if the user's yt-dlp.exe also resides in the current working directory.

On all platforms, attacker-controlled file writes can lead to arbitrary code execution on repeat invocations of yt-dlp: the attacker could write a yt-dlp configuration file (yt-dlp.conf) to the current working directory containing a malicious --exec argument.

Patches

yt-dlp version 2026.06.09 fixes this issue by removing support for downloading fragmented manifest formats with aria2c.

Workarounds

It is recommended to upgrade yt-dlp to version 2026.06.09 as soon as possible.

For users who are not able to upgrade:

  • Add --downloader dash,m3u8:native to your yt-dlp command.
Record
GHSA-vx4q-3cr2-7cg2
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-74
Updated
2026-11-02
OSVPYSEC-2026-3433 8.3

yt-dlp: Arbitrary code execution via manifest downloads with aria2c

Summary

If aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp.

Details

When downloading a fragmented manifest format such as an HLS or DASH stream, yt-dlp first extracts a list of all fragment URLs from the stream's manifest. If the user has selected aria2c as an external downloader, yt-dlp then constructs an input file for aria2c from the fragment URL list and passes its filepath as the argument to aria2c's -i option.

aria2c's -i (or --input-file) option allows for downloading a list of URIs from the given text file. The text file must be formatted as a list of URIs separated by newlines. aria2c's format permits configuration lines for each URI, which can contain command-line options to be given to aria2c. These optional lines follow each URI line and are signified only by leading whitespace. yt-dlp constructs the input file with these optional lines so that it's able to specify the output filename for each fragment using the out= option.

yt-dlp's utilization of the aria2c input file format presents two known attack vectors:

  1. An attacker can craft a malicious DASH manifest with one or more fragment URLs that contain 
, which is the HTML escape sequence for a newline. yt-dlp interprets this escape sequence as an actual newline character when writing the fragment URLs to the aria2c input file, which allows for an attacker to inject arbitrary aria2c options into the input file. With option injection, the attacker can achieve arbitrary file writes. This attack vector is possible only via downloads of DASH formats, since their manifests are an XML format which necessitates unescaping of HTML special characters.

  2. An attacker can craft a malicious metadata response where the data parsed by yt-dlp as the title field (or any other metadata field that the user includes in their output template) contains strategically placed newlines and magnet URIs. If the user has passed the --no-windows-filename option to disable sanitization of newlines in output filenames, the attacker is able to achieve arbitrary file writes by injecting arbitrary URIs and options into the aria2c input file. This attack vector is possible via downloads of both HLS and DASH formats.

On Windows, attacker-controlled file writes can lead to immediate arbitrary code execution: the attacker could write a malicious executable file named ffmpeg.exe to the current working directory, and it could be invoked during the postprocessing stage if the user's yt-dlp.exe also resides in the current working directory.

On all platforms, attacker-controlled file writes can lead to arbitrary code execution on repeat invocations of yt-dlp: the attacker could write a yt-dlp configuration file (yt-dlp.conf) to the current working directory containing a malicious --exec argument.

Patches

yt-dlp version 2026.06.09 fixes this issue by removing support for downloading fragmented manifest formats with aria2c.

Workarounds

It is recommended to upgrade yt-dlp to version 2026.06.09 as soon as possible.

For users who are not able to upgrade:

  • Add --downloader dash,m3u8:native to your yt-dlp command.
Record
PYSEC-2026-3433
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2026-50574 8.3

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.

Record
UBUNTU-CVE-2026-50574
CVSS 3.1
8.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS 3.1
9.6 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2026-0234 No score

Updated yt-dlp packages fix security vulnerabilities

CVE-2026-50019 If curl is used as an external downloader for yt-dlp, cookies may be leaked to an unintended host upon HTTP redirect or when the host for download fragments differs from their parent manifest's. CVE-2026-50023 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. CVE-2026-50574 If aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. For mageia 9 we import yt-dlp-ejs to ensure the application still works.

Record
MGASA-2026-0234
Updated
2026-11-02
OSVopenSUSE-SU-2026:11019-1 No score

python313-yt-dlp-2026.06.09-1.1 on GA media

These are all security issues fixed in the python313-yt-dlp-2026.06.09-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11019-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21163-1 No score

Security update for yt-dlp

This update for yt-dlp fixes the following issues:

Changes in yt-dlp:

  • Update to version 2026.06.09
    • Fixed [CVE-2026-50019]: File Downloader cookie leak with curl
    • Fixed [CVE-2026-50023]: Dangerous file type creation via insufficient filename sanitization
    • Fixed [CVE-2026-50574]: Arbitrary code execution via manifest downloads with aria2c
    • Added lockfile and pinned extras
    • Removed url, desktop and webloc from safe extensions
    • Extract supplemental codecs from DASH manifests
    • abematv: Extract subtitles
    • ard: Support new ardsounds domain
    • monstercat: Support older URLs
    • pornhub: Support browser impersonation
    • reddit: Fix unauthenticated extraction
    • rtp: Support multi-part episodes and --no-playlist
    • s4c: Extract more metadata
    • soop: Adapt extractors to new domain
    • soundcloud: Support --extractor-retries for original formats
    • twitch: Remove dead rechat subtitles
    • twitter: Fix view_count extraction
    • external: aria2c: Remove support for m3u8/dash protocols
    • ffmpegmetadata: Avoid erroneous ISO 639 conversions
Record
openSUSE-SU-2026:21163-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
yt-dlp
PyPI
before 2026.6.9
2026.6.9
yt-dlp
Debian:12
All versions, plus listed versions
2023.03.04-12023.06.21-12023.06.22-12023.06.22-1~bpo12+12023.07.06-1
Show 45 moreShow less
2023.07.06-1~bpo12+12023.09.24-12023.09.24-22023.09.24-2~bpo12+12023.10.07-12023.10.07-1~bpo12+12023.10.13-12023.10.13-1~bpo11+12023.10.13-1~bpo12+12023.11.16-12023.11.16-1~bpo11+12023.11.16-1~bpo12+12023.12.30-12024.03.10-12024.03.10-1~bpo12+12024.04.09-12024.04.09-1~bpo12+12024.05.26-12024.05.26-1~bpo12+12024.05.27-12024.05.27-1~bpo12+12024.07.01-12024.07.02-12024.07.02-1~bpo12+12024.07.07-12024.07.09-12024.07.09-1~bpo12+12024.07.16-12024.07.16-1~bpo12+12024.07.25-12024.07.25-1~bpo12+12024.08.01-12024.08.01-1~bpo12+12024.08.06-12024.08.06-1~bpo12+12024.09.27-12024.09.27-1~bpo12+12024.10.07-12024.10.07-1~bpo12+12024.10.22-12024.10.22-1~bpo12+12024.11.04-12024.11.18-12024.11.18-1~bpo12+12024.12.03-1
None known
yt-dlp
Debian:13
All versions, plus listed versions
2025.04.30-12025.05.22-12025.06.09-12025.06.25-12025.06.30-1
Show 36 moreShow less
2025.07.21-12025.08.11-12025.08.11-1~bpo13+12025.08.20-12025.08.22-12025.08.27-12025.08.27-1~bpo13+12025.09.05-12025.09.05-1~bpo13+12025.09.23-12025.09.26-12025.09.26-1~bpo13+12025.10.14-12025.10.14-1~bpo13+12025.10.22-12025.10.22-1~bpo13+12025.11.12-12025.11.12-1~bpo13+12025.12.08-12025.12.08-1~bpo13+12026.01.31-12026.01.31-1~bpo13+12026.02.21-12026.02.21-1~bpo13+12026.03.03-12026.03.03-1~bpo13+12026.03.13-12026.03.13-1~bpo13+12026.03.17-12026.03.17-1~bpo13+12026.06.09-12026.06.09-1~bpo13+12026.07.04-12026.07.04-1~bpo13+12026.08.19-12026.08.19-1~bpo13+1
None known
yt-dlp
Debian:14
before 2026.06.09-1, plus listed versions
2025.04.30-12025.05.22-12025.06.09-12025.06.25-12025.06.30-1
Show 31 moreShow less
2025.07.21-12025.08.11-12025.08.11-1~bpo13+12025.08.20-12025.08.22-12025.08.27-12025.08.27-1~bpo13+12025.09.05-12025.09.05-1~bpo13+12025.09.23-12025.09.26-12025.09.26-1~bpo13+12025.10.14-12025.10.14-1~bpo13+12025.10.22-12025.10.22-1~bpo13+12025.11.12-12025.11.12-1~bpo13+12025.12.08-12025.12.08-1~bpo13+12026.01.31-12026.01.31-1~bpo13+12026.02.21-12026.02.21-1~bpo13+12026.03.03-12026.03.03-1~bpo13+12026.03.13-12026.03.13-1~bpo13+12026.03.17-12026.03.17-1~bpo13+12026.06.09-1~bpo13+1
2026.06.09-1
yt-dlp
PyPI
before 2026.6.9, plus listed versions
2021.1.152021.1.15.post12021.1.162021.1.202021.1.24
Show 45 moreShow less
2021.1.24.post12021.1.292021.10.102021.10.222021.10.92021.11.102021.11.10.12021.12.12021.12.252021.12.272021.2.152021.2.192021.2.242021.2.42021.2.92021.3.12021.3.152021.3.212021.3.242021.3.24.12021.3.32021.3.3.12021.3.3.22021.3.72021.4.112021.4.222021.4.32021.5.112021.5.202021.6.12021.6.232021.6.82021.6.92021.7.212021.7.242021.7.72021.8.102021.8.22021.9.12021.9.22021.9.252022.1.212022.10.42022.11.112022.2.3
2026.6.9
yt-dlp
Mageia:10
before 2026.06.09-1.mga10
2026.06.09-1.mga10
yt-dlp
Mageia:9
before 2026.06.09-1.1.mga9
2026.06.09-1.1.mga9
yt-dlp-ejs
Mageia:9
before 0.8.0-1.mga9
0.8.0-1.mga9
yt-dlp
Ubuntu:22.04:LTS
All versions, plus listed versions
2021.12.01-12021.12.27-12022.01.21-12022.02.04-12022.03.08.1-12022.04.08-1
None known
yt-dlp
Ubuntu:24.04:LTS
All versions, plus listed versions
2023.07.06-12023.10.13-1ubuntu12023.11.16-12023.12.30-1ubuntu12024.03.10-12024.04.09-1
None known
Show 5 moreShow less
Affected packages
PackageAffectedFixed
yt-dlp
Ubuntu:25.10
All versions, plus listed versions
2025.03.27-12025.04.30-12025.05.22-12025.06.09-12025.06.25-1
Show 8 moreShow less
2025.06.30-12025.07.21-12025.08.11-12025.08.20-12025.08.22-12025.08.27-12025.09.05-12025.09.23-1
None known
yt-dlp
Ubuntu:26.10
All versions, plus listed versions
2026.03.17-12026.06.09-12026.07.04-12026.08.19-1
None known
yt-dlp
Ubuntu:26.04:LTS
All versions, plus listed versions
2025.09.23-12025.10.22-12025.11.12-12025.12.08-12026.01.31-12026.03.17-1
None known
yt-dlp
openSUSE:Tumbleweed
before 2026.06.09-1.1
2026.06.09-1.1
yt-dlp
openSUSE:Leap 16.0
before 2026.06.09-bp160.1.1
2026.06.09-bp160.1.1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-50574 is a high vulnerability (CVSS 8.3) in Yt-dlp, published June 12, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.46%, the 40th percentile. Fixed in yt-dlp 2026.6.9.

References

Show 14 moreShow less
This page doesn't list everything

Left out here: 612 versions. The JSON record has them.

MoveEnter Open