Skip to content

The agent that grows with you

docs(security): say which raw CDP params the metadata check reads

kshitijk4poor4003c210cc5a
diff --git a/website/docs/user-guide/features/browser.md b/website/docs/user-guide/features/browser.md
index e7f96a28b7f..c2673bc30b7 100644
--- a/website/docs/user-guide/features/browser.md
+++ b/website/docs/user-guide/features/browser.md
@@ -284,7 +284,7 @@ With auto-routing disabled, private URLs are rejected with
`security.allow_private_urls: true` (or the legacy `browser.allow_private_urls: true`),
which hands them to the cloud provider — usually useless, since Browserbase etc.
can't reach your LAN. Cloud-metadata URLs (`169.254.169.254`,
-`metadata.google.internal`) written in `browser_exec` code or raw CDP params are refused on
+`metadata.google.internal`) written in `browser_exec` code or in a URL a raw CDP call fetches are refused on
every route, sidecar included; a page that redirects there on its own is not (see
[Security](../security.md#what-allow_private_urls-covers-and-what-it-doesnt)).
diff --git a/website/docs/user-guide/security.md b/website/docs/user-guide/security.md
index 1b6423b347b..29f09c33cfc 100644
--- a/website/docs/user-guide/security.md
+++ b/website/docs/user-guide/security.md
@@ -804,15 +804,17 @@ not stop every route to a private host. With it `false`:
| `web_extract` | Refused before any backend is called. With it `true`, hosted extract backends still fetch from their own servers and cannot reach your LAN. |
| `vision_analyze` URL fetches, image/video result downloads, gateway media downloads | Refused |
| `browser_exec` on a cloud provider with `browser.auto_local_for_private_urls: false`, on a `/browser connect` (CDP) endpoint, or with a Docker/SSH/Modal terminal backend | Refused (`Blocked: URL targets a private or internal address`) |
-| `browser_cdp` raw CDP calls on those same backends | Refused for private page URLs |
+| `browser_cdp` raw CDP calls on those same backends | Refused while a private page is open, and when an absolute `http(s)://` URL the call fetches (a `url` param, a script, injected HTML) is private. A scheme-relative `//host` URL is checked for cloud metadata only |
| `browser_exec` on a cloud provider with `browser.auto_local_for_private_urls: true` (the default) | **Opens**, in a local Chromium sidecar on the Hermes host ([hybrid routing](./features/browser.md#hybrid-routing-cloud-for-public-urls-local-for-lanlocalhost)) |
| `browser_exec` on the local Chromium with a local terminal backend | **Opens**: the browser reaches nothing the terminal can't |
| `terminal` (`curl http://localhost`, ...) | **Opens**: no URL guard |
Cloud-metadata endpoints are refused on every row except `terminal`, sidecar and
-local Chromium included: a metadata URL written in `browser_exec` code, in a raw CDP call's
-params, or in a script it injects is refused before the browser sees it. The check reads the URLs
-the agent writes; it does not watch the browser afterwards, so a public page that redirects to, or
+local Chromium included: a metadata URL written in `browser_exec` code, in a URL a raw CDP call
+fetches, or in a script or HTML it injects is refused before the browser sees it. Raw CDP params the
+call never fetches are not checked: typed text (`Input.*`), dialog answers, cookie scope URLs and
+request blocking or interception patterns. The check reads the URL literals the agent writes, not a
+URL assembled at run time (string concatenation, escapes) or split by a tab or newline the browser drops; it does not watch the browser afterwards, so a public page that redirects to, or
fetches from, a metadata address is not stopped by it. On a cloud VM, block the metadata service at
the network too (IMDSv2 with hop limit 1, a firewall rule). To keep the agent's browser off private hosts while a cloud provider is
configured, set `browser.auto_local_for_private_urls: false`; that matters most on
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md
index b725ac669b4..0fbf495f53d 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md
@@ -207,7 +207,7 @@ browser:
禁用自动路由后,私有 URL 将被拒绝并返回 `"Blocked: URL targets a private or internal address"`,除非同时设置 `browser.allow_private_urls: true`(允许云端提供商尝试访问,但通常无法成功,因为 Browserbase 等无法访问您的 LAN)。
-辅助进程就是[上文](#local-chromium-default)所述的本地 Chromium,因此需要安装该 Chromium。从公网 URL 导航后重定向到私有地址的情况仍会被阻止(无法通过公网路径的重定向访问 LAN)。
+辅助进程就是[上文](#local-chromium-default)所述的本地 Chromium,因此需要安装该 Chromium。
## 真实 profile 浏览(使用您自己的登录状态) {#real-profile-browsing-use-your-own-logins}