baoyu-image-gen
Warn
Audited by Socket on Jun 26, 2026
2 alerts found:
AnomalySecurityAnomalyscripts/providers/openai.ts
LOWAnomalyLOW
scripts/providers/openai.ts
No clear indicators of intentional malware (no obfuscation, no persistence, no dynamic execution, no credential theft beyond using the provided API key for expected API calls). However, this module has moderate security risk due to (1) unvalidated reference image paths leading to arbitrary local file read and upload to a remote endpoint, (2) server-side fetching of img.url without allowlisting (SSRF-like risk), and (3) OPENAI_BASE_URL controlling where the Bearer token is sent. Risk level is therefore highly dependent on trust boundaries for CLI args and environment configuration.
Confidence: 70%Severity: 62%
Securityscripts/codex-imagegen/spawn.ts
MEDIUMSecurityMEDIUM
scripts/codex-imagegen/spawn.ts
Audit Metadata