{"url":"http://public2.vulnerablecode.io/api/packages/708097?format=json","purl":"pkg:pypi/yt-dlp@2024.3.30.232704.dev0","type":"pypi","namespace":"","name":"yt-dlp","version":"2024.3.30.232704.dev0","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2026.2.21","latest_non_vulnerable_version":"2026.2.21","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/37162?format=json","vulnerability_id":"VCID-65md-pf4e-jqgx","summary":"`yt-dlp` and `youtube-dl` are command-line audio/video downloaders. Prior to the fixed versions, `yt-dlp` and `youtube-dl` do not limit the extensions of downloaded files, which could lead to arbitrary filenames being created in the download folder (and path traversal on Windows). Since `yt-dlp` and `youtube-dl` also read config from the working directory (and on Windows executables will be executed from the `yt-dlp` or `youtube-dl` directory), this could lead to arbitrary code being executed.\n\n\n\n\n`yt-dlp` version 2024.07.01 fixes this issue by whitelisting the allowed extensions. `youtube-dl` fixes this issue in commit `d42a222` on the `master` branch and in nightly builds tagged 2024-07-03 or later. This might mean some very uncommon extensions might not get downloaded, however it will also limit the possible exploitation surface. In addition to upgrading, have `.%(ext)s` at the end of the output template and make sure the user trusts the websites that they are downloading from. Also, make sure to never download to a directory within PATH or other sensitive locations like one's user directory, `system32`, or other binaries locations. For users who are not able to upgrade, keep the default output template (`-o \"%(title)s [%(id)s].%(ext)s`); make sure the extension of the media to download is a common video/audio/sub/... one; try to avoid the generic extractor; and/or use `--ignore-config --config-location ...` to not load config from common locations.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38519","reference_id":"","reference_type":"","scores":[{"value":"0.00045","scoring_system":"epss","scoring_elements":"0.14237","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00045","scoring_system":"epss","scoring_elements":"0.14356","published_at":"2026-06-12T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38519"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38519","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38519"},{"reference_url":"https://github.com/yt-dlp/yt-dlp","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp"},{"reference_url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1079502","reference_id":"1079502","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1079502"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2024.07.01","reference_id":"2024.07.01","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2024.07.01"},{"reference_url":"https://github.com/ytdl-org/youtube-dl/pull/32830","reference_id":"32830","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/ytdl-org/youtube-dl/pull/32830"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a","reference_id":"5ce582448ececb8d9c30c8c31f58330090ced03a","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38519","reference_id":"CVE-2024-38519","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38519"},{"reference_url":"https://github.com/ytdl-org/youtube-dl/commit/d42a222ed541b96649396ef00e19552aef0f09ec","reference_id":"d42a222ed541b96649396ef00e19552aef0f09ec","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/ytdl-org/youtube-dl/commit/d42a222ed541b96649396ef00e19552aef0f09ec"},{"reference_url":"https://github.com/dirkf/youtube-dl/security/advisories/GHSA-22fp-mf44-f2mq","reference_id":"GHSA-22fp-mf44-f2mq","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/dirkf/youtube-dl/security/advisories/GHSA-22fp-mf44-f2mq"},{"reference_url":"https://github.com/advisories/GHSA-79w7-vh3h-8g4j","reference_id":"GHSA-79w7-vh3h-8g4j","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-79w7-vh3h-8g4j"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j","reference_id":"GHSA-79w7-vh3h-8g4j","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j"},{"reference_url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl/","reference_id":"GHSL-2024-089_youtube-dl","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl/"},{"reference_url":"https://securitylab.github.com/advisories/GHSL-2024-090_yt-dlp","reference_id":"GHSL-2024-090_yt-dlp","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-07-02T15:17:37Z/"}],"url":"https://securitylab.github.com/advisories/GHSL-2024-090_yt-dlp"},{"reference_url":"https://security.gentoo.org/glsa/202409-30","reference_id":"GLSA-202409-30","reference_type":"","scores":[],"url":"https://security.gentoo.org/glsa/202409-30"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/32383?format=json","purl":"pkg:pypi/yt-dlp@2024.7.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dbrg-uvxj-qqdz"},{"vulnerability":"VCID-nj93-7bj7-bqbt"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/yt-dlp@2024.7.1"}],"aliases":["CVE-2024-38519","GHSA-79w7-vh3h-8g4j"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-65md-pf4e-jqgx"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/212181?format=json","vulnerability_id":"VCID-dbrg-uvxj-qqdz","summary":"yt-dlp has dependency on potentially malicious third-party code in Douyu extractors","references":[{"reference_url":"https://github.com/yt-dlp/yt-dlp","reference_id":"","reference_type":"","scores":[{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/commit/6075a029dba70a89675ae1250e7cdfd91f0eba41","reference_id":"","reference_type":"","scores":[{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp/commit/6075a029dba70a89675ae1250e7cdfd91f0eba41"},{"reference_url":"https://github.com/advisories/GHSA-3v33-3wmw-3785","reference_id":"GHSA-3v33-3wmw-3785","reference_type":"","scores":[{"value":"LOW","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-3v33-3wmw-3785"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3v33-3wmw-3785","reference_id":"GHSA-3v33-3wmw-3785","reference_type":"","scores":[{"value":"LOW","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3v33-3wmw-3785"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/32450?format=json","purl":"pkg:pypi/yt-dlp@2024.7.7","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-nj93-7bj7-bqbt"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/yt-dlp@2024.7.7"}],"aliases":["GHSA-3v33-3wmw-3785"],"risk_score":1.4,"exploitability":"0.5","weighted_severity":"2.7","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-dbrg-uvxj-qqdz"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/62423?format=json","vulnerability_id":"VCID-def2-csya-t7gv","summary":"yt-dlp is a youtube-dl fork with additional features and fixes. The patch that addressed CVE-2023-40581 attempted to prevent RCE when using `--exec` with `%q` by replacing double quotes with two double quotes. However, this escaping is not sufficient, and still allows expansion of environment variables. Support for output template expansion in `--exec`, along with this vulnerable behavior, was added to `yt-dlp` in version 2021.04.11. yt-dlp version 2024.04.09 fixes this issue by properly escaping `%`. It replaces them with `%%cd:~,%`, a variable that expands to nothing, leaving only the leading percent. It is recommended to upgrade yt-dlp to version 2024.04.09 as soon as possible. Also, always be careful when using `--exec`, because while this specific vulnerability has been patched, using unvalidated input in shell commands is inherently dangerous. For Windows users who are not able to upgrade, avoid using any output template expansion in `--exec` other than `{}` (filepath); if expansion in `--exec` is needed, verify the fields you are using do not contain `\"`, `|` or `&`; and/or instead of using `--exec`, write the info json and load the fields from it instead.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2024-22423","reference_id":"","reference_type":"","scores":[{"value":"0.06497","scoring_system":"epss","scoring_elements":"0.91338","published_at":"2026-06-12T12:55:00Z"},{"value":"0.06497","scoring_system":"epss","scoring_elements":"0.91308","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-22423"},{"reference_url":"https://github.com/yt-dlp/yt-dlp","reference_id":"","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp"},{"reference_url":"https://www.kb.cert.org/vuls/id/123335","reference_id":"123335","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://www.kb.cert.org/vuls/id/123335"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2021.04.11","reference_id":"2021.04.11","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2021.04.11"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2024.04.09","reference_id":"2024.04.09","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2024.04.09"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22423","reference_id":"CVE-2024-22423","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22423"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/commit/de015e930747165dbb8fcd360f8775fd973b7d6e","reference_id":"de015e930747165dbb8fcd360f8775fd973b7d6e","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/commit/de015e930747165dbb8fcd360f8775fd973b7d6e"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/commit/ff07792676f404ffff6ee61b5638c9dc1a33a37a","reference_id":"ff07792676f404ffff6ee61b5638c9dc1a33a37a","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/commit/ff07792676f404ffff6ee61b5638c9dc1a33a37a"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-42h4-v29r-42qg","reference_id":"GHSA-42h4-v29r-42qg","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-42h4-v29r-42qg"},{"reference_url":"https://github.com/advisories/GHSA-hjq6-52gw-2g7p","reference_id":"GHSA-hjq6-52gw-2g7p","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-hjq6-52gw-2g7p"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-hjq6-52gw-2g7p","reference_id":"GHSA-hjq6-52gw-2g7p","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"8.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-04-10T19:34:51Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-hjq6-52gw-2g7p"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/30249?format=json","purl":"pkg:pypi/yt-dlp@2024.4.9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-65md-pf4e-jqgx"},{"vulnerability":"VCID-dbrg-uvxj-qqdz"},{"vulnerability":"VCID-nj93-7bj7-bqbt"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/yt-dlp@2024.4.9"}],"aliases":["CVE-2024-22423","GHSA-hjq6-52gw-2g7p"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-def2-csya-t7gv"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/70942?format=json","vulnerability_id":"VCID-nj93-7bj7-bqbt","summary":"yt-dlp is a command-line audio/video downloader. Starting in version 2023.06.21 and prior to version 2026.02.21, when yt-dlp's `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter) is used, an attacker could achieve arbitrary command injection on the user's system with a maliciously crafted URL. yt-dlp maintainers assume the impact of this vulnerability to be high for anyone who uses `--netrc-cmd` in their command/configuration or `netrc_cmd` in their Python scripts. Even though the maliciously crafted URL itself will look very suspicious to many users, it would be trivial for a maliciously crafted webpage with an inconspicuous URL to covertly exploit this vulnerability via HTTP redirect. Users without `--netrc-cmd` in their arguments or `netrc_cmd` in their scripts are unaffected. No evidence has been found of this exploit being used in the wild. yt-dlp version 2026.02.21 fixes this issue by validating all netrc \"machine\" values and raising an error upon unexpected input. As a workaround, users who are unable to upgrade should avoid using the `--netrc-cmd` command-line option (or `netrc_cmd` Python API parameter), or they should at least not pass a placeholder (`{}`) in their `--netrc-cmd` argument.","references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-26331.json","reference_id":"","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-26331.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-26331","reference_id":"","reference_type":"","scores":[{"value":"0.00218","scoring_system":"epss","scoring_elements":"0.44657","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00218","scoring_system":"epss","scoring_elements":"0.44504","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-26331"},{"reference_url":"https://github.com/yt-dlp/yt-dlp","reference_id":"","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/yt-dlp/yt-dlp"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a","reference_id":"1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-02-24T20:08:27Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/commit/1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21","reference_id":"2026.02.21","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-02-24T20:08:27Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2026.02.21"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442143","reference_id":"2442143","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442143"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26331","reference_id":"CVE-2026-26331","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26331"},{"reference_url":"https://github.com/advisories/GHSA-g3gw-q23r-pgqm","reference_id":"GHSA-g3gw-q23r-pgqm","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-g3gw-q23r-pgqm"},{"reference_url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm","reference_id":"GHSA-g3gw-q23r-pgqm","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-02-24T20:08:27Z/"}],"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-g3gw-q23r-pgqm"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/39525?format=json","purl":"pkg:pypi/yt-dlp@2026.2.21","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/yt-dlp@2026.2.21"}],"aliases":["CVE-2026-26331","GHSA-g3gw-q23r-pgqm"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-nj93-7bj7-bqbt"}],"fixing_vulnerabilities":[],"risk_score":"4.0","resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/yt-dlp@2024.3.30.232704.dev0"}