You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(yt-dlp): link parsed as an option can re-enable plugin execution #452
downloadVideo in packages/yt-dlp/src/download.ts appends the URL as a bare positional argument with no -- separator, and the exported function trusts its caller to have run isVideoUrl. A value shaped like --plugin-dirs=<dir> is parsed by yt-dlp as an option: it re-enables the plugin search --no-plugin-dirs had just disabled, loading and running Python code from a caller-named directory. Other option-shaped values (--exec, --paths, --config) are injectable the same way.
Proposed fix: assert http/https inside downloadVideo and pass the link behind a -- end-of-options separator.
Activity
fix(yt-dlp): end option parsing before the link and require http(s)