Audited by Socket on Jun 19, 2026
2 alerts found:
Anomalyx2No clear evidence of intentionally malicious behavior (no credential access, no reverse shell, no obvious data exfiltration logic) in this module itself. However, it has meaningful security risks: it loads attacker-influenced local HTML into a full Chromium context via file:// (allowing embedded scripts and external resources to execute/request), and it conditionally fetches and executes remote JavaScript from a CDN when the local Paged.js polyfill is missing (supply-chain/execution risk). Additionally, it logs document-derived metrics and writes output to a user-specified path. If used with untrusted HTML/CSS or in environments where the CDN fallback can trigger, it should be treated as a security alert and run with strong isolation.
No explicit malicious payload is demonstrated in this fragment, but it contains a critical supply-chain trust weakness (`curl ... | sh` for installing Tectonic) and an inherently high-risk operation (compiling user-controlled LaTeX) without providing verifiable sandboxing/containment controls for the wrapper/engine. Treat as an elevated security-risk component requiring pinned/verified installers, controlled dependency fetching, and strong isolation for TeX compilation (network/file restrictions, shell-escape policy, and safe working-directory constraints).