Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade yt-dlp to version 2026.6.9 or higher.
yt-dlp is an A youtube-dl fork with additional features and patches
Affected versions of this package are vulnerable to Command Injection via --exec. An attacker can execute arbitrary commands on the user's system by crafting malicious metadata values containing shell operators, which are then unsafely interpolated into the command template when unsafe conversions are used.
Note: This is only expoitable when users pass an --exec command template containing unsafe conversions in their command or configuration file: %()s, %()a, %()r, %()j, %()S (including any of their flagged variants.)