← All notes

AnalysisAct

A domain list is not an egress policy

Two browser-agent toolkits this week fixed domain allowlists that a single backslash could walk past. The fixes are needed and they are not the point: both projects now say, in their own records and code, that a list inside the browser decides where the agent goes, not where the page sends.

Published
Topics
AI agent security · Browser agents · Egress filtering · SSRF · CVE · CWE
Also available in Polish
Lista domen to nie zapora ↗
4CVE records in three days for browser-agent domain filters that attacker content could get past

Every browser-agent toolkit eventually grows a setting called allowed_domains. It is the first thing a security review asks for and the first thing an engineer reaches for when a model is about to browse the open web: tell the agent where it may go. This week four records against two toolkits showed what that setting actually is, and the vendors' own fixes say it more plainly than an outsider could. A domain list decides where the agent goes. It does not decide what the browser sends.

One string, two readers

Two of the four records turn on the same character. A filter written in Python reads the URL with one parser; the browser that fetches it reads the URL with another. For most strings they agree. For a backslash they do not: Chromium treats it as a slash in a web address, Python treats it as an ordinary character, and the filter approves a host the browser never visits.

Our run of the parser difference, not either toolkit's code
URL:  https://evil.test\@docs.example/

Python urllib.parse    host -> docs.example
WHATWG URL (Node.js)   host -> evil.test

This is not a bug that gets fixed once. Any check that parses a URL with something other than the engine that will fetch it is betting that the two agree on every input an attacker can type. The patches close this case. The class stays open wherever a filter and a browser read the same bytes differently, and nobody can list those places in advance.

A check that runs after the request has left

The older of the two filters had a second weakness that no parser fix touches. It acted on a navigation that was already under way, and sent the tab to a blank page once the request had gone out. By then a state-changing request to an internal service has landed, and a secret in the query string is sitting in someone else's log. A filter that reacts to a navigation is an alarm, not a lock.

The list only covers what it knows about

The other toolkit's filter sat where it should, on the requests a page makes. Its second record is about the requests it did not know were requests. WebRTC, WebTransport, a newer way of opening a WebSocket and the browser's own identity-federation calls each open a connection to a destination the page chooses, and none of them went through the policy. One of them carries the browser's cookies for a different site.

That is the structural problem with a filter that lives inside the browser: it has to enumerate. A browser is not a fixed list of request types. It is a platform whose job is to keep adding ways to reach the network, and each new one ships outside every filter written before it. Removing the listed interfaces from the page is the right emergency measure, and the same record then lists the paths that remain open. That is an unusually honest advisory, and it makes the argument of this note in the vendor's own words.

The other project says the same in its source. Its new domain module describes itself as a guard for a model that is trying to behave, not a sandbox, and says outright that subresources pass. That is the correct description. A domain list keeps an honest agent on task and gives it a clean error when it wanders. It was never going to stop a page that wants to talk to somewhere else.

Where the boundary goes

Both vendors' advice lands in the same place: below the browser. If the browser runs in a container or a virtual machine whose network can reach only what the task needs, it stops mattering which parser read the URL or which API opened the socket. The packet has nowhere to go. That layer does not need to understand URLs, WebRTC or identity federation. It needs a list of destinations and the ability to drop everything else, UDP included.

There is one trap in the obvious version of this. Chromium has its own protection against public pages reaching private addresses, and it does not apply when the browser runs behind a forward proxy. Put a filtering proxy in front of the agent and you have quietly switched off the browser's private-network check, so the proxy has to refuse those ranges itself. And a proxy only sees what is sent to it. WebRTC over UDP does not ask the proxy for permission, so the firewall behind it has to drop anything that is not on its way to the proxy.

Trust is the attack surface

A browser agent exists to open pages written by strangers. That makes the page the attacker by default, and a page is code. Any control that the page's own script can shape, by choosing the URL syntax, the API or the protocol, is a control the attacker gets to configure. The boundary has to sit where the page cannot reach it.

What to actually do

  • Upgrade both toolkits. browser-use to 1.0.0 or later, after reading its migration guide, because 1.0 is a rewrite. pydantic-ai-harness to 0.74.0 or later.
  • Enforce egress below the browser. Run the agent's browser in a container or virtual machine with a network allowlist for the hosts the task needs, and drop everything else, UDP included.
  • If a proxy is the filter, make it refuse private ranges. Loopback, private and link-local addresses, where cloud metadata lives, because the browser's own private-network check does not run behind it. Then have the firewall drop anything that bypasses the proxy.
  • Keep secrets out of URLs and browser profiles. A token in a query string goes wherever the URL goes. Give the agent a fresh profile holding no session you would not hand to the page it is about to open.
  • Test the boundary from inside. From a page in the agent's own browser, try to reach a host outside the list with fetch, an image, a WebSocket and a WebRTC STUN request. Whatever arrives at the other end is your real policy.
  • Keep the domain list, and call it what it is. It keeps a well-behaved agent on task. Do not write it into a threat model as containment.

E/01What is confirmed
  • CVE-2026-136452 and CVE-2026-136453, assigned by VulnCheck and published 24 November 2026 against browser-use, affect versions before 1.0.0. browser-use 1.0.0 was published to PyPI on 10 November 2026.
  • Per CVE-2026-136452, the 0.x SecurityWatchdog read a URL's host with Python's urllib.parse while Chromium parses it WHATWG-style, so a backslash before the allowed host let an LLM-controlled navigation pass allowed_domains, prohibited_domains and block_ip_addresses. The record says the request reaches loopback, private or external hosts before the browser redirects to about:blank.
  • VulnCheck's scores on CVE-2026-136452: CVSS 3.1 base 6.1 and CVSS 4.0 base 5.3. The record carries no CWE. CISA's SSVC entry: exploitation none, automatable yes, technical impact partial.
  • Per CVE-2026-136453, _is_url_match compared raw strings with startswith() instead of the parsed host, so userinfo or prefix tricks such as .com@attacker.com sent an LLM-controlled navigation to another host, exfiltrating secrets embedded in the URL.
  • Weakness on CVE-2026-136453: CWE-187, partial string comparison. VulnCheck's scores: CVSS 3.1 base 6.5 and CVSS 4.0 base 7.1.
  • CVE-2026-136638 and CVE-2026-136641, assigned by Pydantic and published 26 and 25 November 2026 against pydantic-ai-harness, affect versions 0.24.0 through 0.73.0. The fixed release, 0.74.0, was published to PyPI on 25 November 2026.
  • Per CVE-2026-136638, PlaywrightBrowser treated any URL containing a backslash as having no host and allowed hostless script and asset requests, so a page script could add a backslash to a query and reach private addresses, hosts outside allowed_domains and hosts in blocked_domains. It covered fetch, XHR, sendBeacon, WebSocket and passive assets; navigation and frames were not affected.
  • Weaknesses on CVE-2026-136638: CWE-436, interpretation conflict; CWE-918, server-side request forgery. Pydantic's score: CVSS 3.1 base 5.9.
  • Per CVE-2026-136638, Chromium's Local Network Access blocks many requests from public pages to private addresses, but not requests between public hosts and not when the browser runs behind a forward proxy. The record's interim advice is to enforce egress outside the browser with a firewall or a filtering proxy.
  • Per CVE-2026-136641, the policy did not cover WebRTC (STUN and TURN), WebTransport, WebSocketStream or the requests the browser itself sends for FedCM, even under a policy that limits every request kind to an allowlist. A page could read what a server sent over WebSocketStream, including from a private address, and the FedCM accounts request carries the identity provider's cookies from the browser profile.
  • Weakness on CVE-2026-136641: CWE-918. Pydantic's score: CVSS 3.1 base 3.7. CISA's SSVC entry: exploitation none, automatable no, technical impact partial.
  • Per CVE-2026-136641, 0.74.0 removes the WebRTC, WebTransport, WebSocketStream and FedCM interfaces from every page and frame and launches Chromium with FedCM and WebSocketStream turned off. The record then lists paths that stay outside the policy, among them WebTransport from workers, and advises a network egress filter that also covers UDP.
  • NVD status of all four records on 27 November 2026: Received.
  • The NVD records for browser-use point to commit 3752f0e3 and pull request 6314 as the fix. At the 1.0.0 tag, browser_use/domains.py compares parsed hosts and reads backslashes as slashes in http(s) URLs.
  • The same module's docstring at 1.0.0 calls the domain rules "a guard for an aligned model, not a sandbox" and states that subresources (fetch, images, iframes) are not filtered. Per MIGRATING.md at 1.0.0, the browser-level block on navigations does not run when browser-use drives the user's own open Chrome.
  • We ran https://evil.test\@docs.example/ through Python's urllib.parse and through the WHATWG URL parser in Node.js. The first reports the host docs.example, the second evil.test.
E/02What we do not yet know
  • Whether any of the four has been exploited. CISA records exploitation as none on the two records that carry an SSVC entry, and we hold no telemetry: our public sensor is offline.
  • Whether browser-use will ship a fix on the 0.x line. The records name only 1.0.0, which is a rewrite with its own migration guide.
  • What the maintainers' own advisories for pydantic-ai-harness add to the CVE records. Both records point only to repository advisories that GitHub's global advisory database does not list, so nothing here rests on them.
  • How many deployments point either toolkit at pages an attacker can influence, or rely on a domain list as their only egress control. Nobody has published that.
  • Whether other browser-agent toolkits share the same shape. We read only these two.
  • We did not reproduce the flaws in either toolkit. The only thing we ran is the parser difference itself, recorded in the ledger.

E/03Sources
  1. 01CVE-2026-136452 ↗NIST NVD · Primary
  2. 02CVE-2026-136453 ↗NIST NVD · Primary
  3. 03CVE-2026-136638 ↗NIST NVD · Primary
  4. 04CVE-2026-136641 ↗NIST NVD · Primary
  5. 05CVE-2026-136641 record ↗CVE Program · Primary
  6. 06browser-use before 1.0.0 SecurityWatchdog URL parser SSRF bypass ↗VulnCheck · Primary
  7. 07browser-use before 1.0.0 allowlist bypass via _is_url_match ↗VulnCheck · Primary
  8. 08Domain rules module at 1.0.0 ↗browser-use on GitHub · Primary
  9. 09Migration guide at 1.0.0, Domain restrictions ↗browser-use on GitHub · Primary
  10. 10Commit 3752f0e3 ↗browser-use on GitHub · Primary
  11. 11Pull request 6314 ↗browser-use on GitHub · Primary
  12. 12browser-use 1.0.0 ↗PyPI · Primary
  13. 13pydantic-ai-harness 0.74.0 ↗PyPI · Primary

Work with us

Running agents, copilots or MCP servers in production? We review that stack the way this note reads a flaw: what an attacker can actually reach, with a reproduction for every finding and the fixes ranked by exploitability.