playwright-cli
Audited by Socket on Aug 24, 2026
1 alert found:
AnomalyThis fragment behaves like browser automation for scraping and auditing, generating local artifacts (links and UI snapshots) and computing diffs. The standout risk signal is retrieval of a session cookie (`session_id`) into a variable named `TOKEN`, which can enable unauthorized session reuse or follow-on data access if used later. The use of `--raw eval` is also a capability expansion that warrants review. From the snippet alone, there is no direct evidence of exfiltration or classic malware behavior, but the presence of session harvesting makes the overall security posture suspicious enough to require investigation of the surrounding script for how `TOKEN`/snapshots are used and whether any egress occurs.