web-browser
Audited by Socket on Sep 16, 2026
2 alerts found:
Anomalyx2The fragment appears to be a legitimate Chrome DevTools Protocol utility. It contains intentional arbitrary browser JavaScript execution and navigation, but no evidence of malware, data theft, persistence, or sabotage. Security depends on protecting the configured browser debugging endpoint and restricting which callers can supply expressions or URLs. The code itself does not implement authentication or endpoint validation.
A browser automation CLI evaluates caller-provided JavaScript in the active browser page via CDP, enabling arbitrary code execution when given untrusted input or connected to an untrusted CDP endpoint. The threat is heightened by a lack of sandboxing and potential access to page state and data; mitigations include input validation, restricted API surface, and a sandboxed evaluation environment.