You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] SSRF and local resource access via unrestricted URL handling #17
The goto, newtab, and diff commands accept arbitrary URLs and pass them directly to Playwright's page.goto() with no scheme or host validation. This enables Server-Side Request Forgery (SSRF) and local file access.
http://127.0.0.1/... and other private network targets
In an agentic context, a prompt-injected page could coerce the model into fetching internal resources and exfiltrating content via text, html, or screenshot.
Proof of Concept
bun run dev goto file:///etc/hosts → Navigated ... (200) — successfully reads local file
bun run dev goto http://127.0.0.1:<port>/... → successfully accesses localhost services
Suggested Fix
Default-deny non-HTTP(S) schemes
Add a denylist for localhost, RFC1918, link-local, .internal, and cloud metadata IPs (169.254.169.254)
Make access to local/private targets an explicit opt-in with a warning
Severity
High — enables local file read and internal network access, amplified by agentic automation context
Activity
Security: validate URLs to prevent SSRF and local resource access
fix(security): add SSRF protection to goto command
innodonni commentedon Mar 17, 2026
This still doesn't prevent malignment from hacking insecure networks and launching nukes. I won't be using or recommending it.
fix: validate navigation URLs to prevent SSRF and local resource access
fix: block SSRF via URL validation in browse commands (#17)
fix: security hardening + issue triage (v0.8.3) (garrytan#205)
feat: address all visualizer (garrytan#19-garrytan#21) and resolver (g…
fix: security hardening + issue triage (v0.8.3) (garrytan#205)
fix: block SSRF via URL validation in browse commands (garrytan#17)
v1.91.15.0 v1.91.15.0: Opus 5.5 prompt cleanup, behavior-level skill …
v1.91.15.0 v1.91.15.0: Opus 5.5 prompt cleanup, behavior-level skill …
Merge pull request 'chore(upstream): sync fork to garrytan/gstack v1.…
fix(fork-sync): only dotenv files bun loads block; every planned shar…