media-use

Warn

Audited by Socket on Nov 3, 2026

3 alerts found:

Anomalyx3
AnomalyLOW
scripts/lib/freeze.mjs

This module is primarily a download-and-store utility with a 256MB size cap. It is not overtly malicious (no backdoor/persistence/stealth behavior evident), but it is security-sensitive: freezeUrl performs unrestricted http(s) fetches of caller-provided URLs (SSRF risk if untrusted input reaches it) and writes downloaded bytes directly to caller-provided paths (arbitrary file write risk). freezeLocalFile additionally enables arbitrary file copy if paths are not controlled. The URL safety helper exists but is not enforced inside freezeUrl, so mitigation depends on external caller logic.

Confidence: 60%Severity: 62%
AnomalyLOW
scripts/lib/local-run.mjs

The code uses execFileSync with shell set to true and constructs the command by interpolating template values directly into the command string, allowing attacker-controlled input to be executed. This creates a command-injection/RCE risk, especially if opts.vars or the model configuration can influence the substituted values. Mitigations include avoiding shell: true, validating or whitelisting templates, escaping or quoting substituted values, or using spawn with an argument array.

Confidence: 72%Severity: 72%
AnomalyLOW
scripts/lib/ltx-video-provider.mjs

This module is a local wrapper that executes a model binary selected from local specs, using execFileSync by default. There is no overt malware behavior visible in the fragment (no network, persistence, or credential theft), but it is a high-privilege execution sink: caller-controlled intent and ctx-derived parameters are transformed into command-line arguments for a locally executed program, and model.invoke/bin selection controls which executable runs. If model specs/buildArgv/model selection are tampered with, or if the invoked binary mishandles arguments, the risk could increase. Overall, treat as a moderate security risk wrapper dependent on the integrity of local model metadata and the invoked binary’s argument parsing.

Confidence: 70%Severity: 50%
Audit Metadata
Analyzed At
Nov 3, 2026, 09:11 PM
Package URL
pkg:socket/skills-sh/coco-research%2Fcoco%2Fmedia-use%2F@6866ee6848c41beb43530dbd1e3c662c6ae33310ff76cab6c1b9763f209c1049