{"url":"http://public2.vulnerablecode.io/api/packages/950598?format=json","purl":"pkg:pypi/yt-dlp@2026.1.16.233125.dev0","type":"pypi","namespace":"","name":"yt-dlp","version":"2026.1.16.233125.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/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.44661","published_at":"2026-06-14T12:55:00Z"},{"value":"0.00218","scoring_system":"epss","scoring_elements":"0.44673","published_at":"2026-06-13T12:55:00Z"},{"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@2026.1.16.233125.dev0"}