codex-theme-installer
Warn
Audited by Socket on Jul 17, 2026
1 alert found:
AnomalyAnomalyscripts/install-theme.ts
LOWAnomalyLOW
scripts/install-theme.ts
This module is a remote theme installer that downloads JSON, validates it, and writes multiple files (theme.json, a CSS file, an optional base64-decoded asset, and an optional README) into a local directory. The dominant security risk visible in the fragment is filesystem path traversal/arbitrary file write driven by remote-controlled path components (portable.manifest.id for the destination directory and manifest.css/portable.art.filename for target filenames), unless validatePackage/parseThemeId strictly enforce safe basenames and prevent absolute paths and '..' traversal. No clear evidence of overt malware (exfiltration, backdoor, eval/child-process) is present in the shown code.
Confidence: 60%Severity: 60%
Audit Metadata