media-generation
Audited by Socket on Nov 3, 2026
2 alerts found:
Anomalyx2This code submits video-generation requests to a configured provider, polls jobs, and optionally downloads returned media. The main security risk is that an absolute polling URL from the provider response is trusted and receives the configured Bearer API key, allowing credential disclosure if that response is attacker-controlled or compromised. Provider-returned media references are also handed to an unreviewed download helper. Overall severity is medium; no clear malware behavior is present in this file.
This is a media extraction and download utility, with no evident standalone malware behavior. Its principal risks are SSRF through an unvalidated extracted URL, potential disclosure of explicitly supplied headers to that URL, and path traversal or writes outside the requested directory through an unsanitized --prefix; unbounded content may also exhaust resources. Severity is moderate when response text or command-line options can be attacker-controlled; the relevant network sink is requests.get and the filesystem sink is Path.write_bytes.