Skip to content

Playwright 1.65.0: bundled Chromium 158 drops the distrusted eMudhra root (#3338) - #4087

Merged
capy-ai[bot] merged 6 commits into
mainfrom
capy/gst-1652-playwright-1-65
Nov 6, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
capy/gst-1652-playwright-1-65

Conversation

@garrytan

@garrytan garrytan commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4087,
  "head": "5ecaec7fb4f16c47f37752fc4b899cdd2462da25",
  "version": "1.96.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 35991,
      "fail": 0,
      "skip": 111
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 42254806829,
      "attempt": 1,
      "tree": "0bff0527d53f11d092a8449f5c224f6866882b94"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "485949cc9570dce9b5917d96672d0224d5887798",
  "product_patch_id": "591fcb68e4e7d3c9ce15abc0c1736609b4c77ec9",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 58,
    "rules": "70895942bb8a8ee2",
    "base": "cb8f9eaeacf950180a5fc9ecb6e78a2787d35768",
    "registry": "cb8f9eaeacf950180a5fc9ecb6e78a2787d35768",
    "gate_scan": {
      "tagged": 0,
      "head": "5ecaec7fb4f16c47f37752fc4b899cdd2462da25"
    },
    "reasons": [
      "gate-class",
      "risk:data",
      "runtime=58"
    ],
    "risk": [
      "data"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @485949cc9570 (7 checks, current for 5ecaec7fb4f1)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42260441774/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/42260441600/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=485949cc9570 tests=36024 skipped=111 runs=42260441774/1 profiles=ci-reuse/free-tests heads=5ecaec7fb4f1 verified=2026-11-06T17:29:37.403Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3338
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "BROWSER.md, README.md, docs/, setup-browser-cookies/SKILL.md.tmpl (attempt 1 edited docs/PROJECT_STRUCTURE.md; attempt 2 confirmed current)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 1,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "carry": {
    "from": "b78ac13a5f25464ef25477c6f044294cf63bf245",
    "reason": "3 base merges + release metadata",
    "product_patch_id": "591fcb68e4e7d3c9ce15abc0c1736609b4c77ec9",
    "changed_paths": [
      "product:.github/workflows/weekly-release.yml",
      "product:README.md",
      "product:bin/gstack-capy-install",
      "product:bin/gstack-doctor-check.sh",
      "product:bin/gstack-doctor-components.sh",
      "product:bin/gstack-ship-policy",
      "product:browse/src/audit.ts",
      "product:browse/src/buffers.ts",
      "product:browse/src/server.ts",
      "test:browse/test/audit-redaction.test.ts",
      "product:capy/skill/gstack/SKILL.md",
      "product:capy/skill/gstack/lane-card.md",
      "product:changelog.d/README.md",
      "metadata:changelog.d/capy-gst-1635-browse-audit-origin-query.md",
      "metadata:changelog.d/capy-gst-1637-policy-floor-stable.md",
      "metadata:changelog.d/capy-gst-1646-daily-stable-check.md",
      "metadata:changelog.d/capy-gst-1652-playwright-1-65.md",
      "metadata:changelog.d/capy-gst-1653-shard-overrun-jobs.md",
      "metadata:changelog.d/gst-1631-browse-audit-redaction_scope.md",
      "product:docs/TESTING_INTERNALS.md",
      "product:docs/captain.md",
      "product:docs/capy-install.md",
      "product:docs/install.md",
      "product:docs/pregate.md",
      "product:docs/recommended-harness.md",
      "product:docs/releases.md",
      "product:docs/ship-policy.md",
      "product:docs/troubleshooting.md",
      "product:lib/changelog-fragments.ts",
      "product:lib/pregate/checks/policy-floor.ts",
      "product:lib/pregate/index.ts",
      "product:lib/result-codes-release.ts",
      "product:lib/stable-release.ts",
      "product:scripts/lib/free-ci-health.ts",
      "product:scripts/release-cadence.ts",
      "product:scripts/release-cut.ts",
      "product:test-setup.ts",
      "test:test/changelog-fragments.test.ts",
      "test:test/free-seed-ratchet.test.ts",
      "test:test/gstack-capy-install.test.ts",
      "test:test/policy-floor-stable.test.ts",
      "test:test/pregate-invalidation.test.ts",
      "test:test/pregate-selection.test.ts",
      "test:test/release-cadence.test.ts",
      "test:test/weekly-release-workflow.test.ts"
    ],
    "merge_commits": 3,
    "range_diff": "1:  89c7670bf = 1:  89c7670bf Playwright 1.65.0: bundled Chromium 158 drops the distrusted eMudhra root (#3338)\n2:  b78ac13a5 = 2:  b78ac13a5 docs: PROJECT_STRUCTURE patches note drops the TcpPortRandomizationWin backport\n-:  --------- > 3:  5ecaec7fb changelog.d: mark the eMudhra fix important: security (#3338)",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "0bff0527d53f11d092a8449f5c224f6866882b94"
    ]
  }
}
{"head":"b78ac13a5f25464ef25477c6f044294cf63bf245","version":"1.96.0.0","gstack_version":"1.96.0.0","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":1,"fixed":0,"scope":"frozen","rounds":1,"ledgers_read":3,"dispatches":{"specialist":3,"red-team":1}},"depth":"full"}

What changed

BROWSER.md: the eMudhra root gap (#3338) moves from a known gap to closed, because Playwright 1.65.0's Chromium 158 no longer carries the root

BROWSER.md: the eMudhra root gap (#3338) moves from a known gap to closed, because Playwright 1.65.0's Chromium 158 no longer carries the root.

Before/after as text: BROWSER.md: the eMudhra root gap (#3338) moves from a known gap to closed, because Playwright 1.65.0's Chromium 158 no longer carries the root
--- Before · BROWSER.md § TLS trust: the bundled Chromium's root store at 8d7091a · source text
+++ After · BROWSER.md § TLS trust: the bundled Chromium's root store on this branch · source text
@@ ⋯ 4 unchanged ⋯ @@
 revocation updates Chrome pushes to running browsers. Aside uses your own
 browser's trust store and updates.
 
+**The compromised eMudhra intermediates
-**Known gap: the compromised eMudhra intermediates
 ([#3338](https://github.com/garrytan/gstack/issues/3338)).** Chrome blocked
 eight eMudhra intermediate CAs by CRLSet on 2026-10-17, the day their key
+compromise was reported, and removed their root, emSign ECC Root CA - G3, from
+the Chrome Root Store. Playwright 1.64.1 (Chromium 156) still trusted that root,
+so gstack's headless browser accepted certificates those intermediates issued.
+gstack now pins Playwright 1.65.0, whose Chromium 158.0.8127.18 no longer
+carries the root, so the headless shell and the full Chromium both refuse those
+certificates. `./setup` downloads that Chromium on an upgraded install. A
+`GSTACK_CHROMIUM_PATH` build older than 158.0.8115.0, the first Chrome for
+Testing build measured to refuse them, still trusts the root.
-compromise was reported, and scheduled the removal of their root, emSign ECC
-Root CA - G3, from the Chrome Root Store for 2026-10-27. The root store built
-into gstack's pinned Playwright 1.64.1 (Chromium 156) still trusts that root, so
-the headless browser accepts certificates those intermediates issued. That lasts
-until gstack moves to the first Playwright release whose Chromium is
-158.0.8115.0 or later, the first Chrome for Testing build measured to refuse
-them. Until then, don't do signed-in work in this engine on a network you do not
-trust, and prefer Aside for signed-in work where you have it.
 
 To check a build, run it on a network that does not inspect TLS, because a
 captive portal or an intercepting proxy can fail some or all sites with the
  • Playwright goes from 1.64.1 to 1.65.0. package.json now says ^1.65.0, and bun.lock pins playwright and playwright-core at 1.65.0. The bundled Chromium and headless shell move from 156.0.8078.4 to 158.0.8127.18.
  • patches/[email protected] replaces the 1.64.1 patch. It keeps the windowsHide hunk as windowsHide: true. The TcpPortRandomizationWin hunk is gone because 1.65.0 ships that fix itself (fix(chromium): disable TCP port randomization on Windows microsoft/playwright#43605).
  • Two new free regression checks. playwright-core-patch.test.ts fails when either bundled browser is older than 158.0.8115.0. bundled-chromium-root-store.test.ts runs on Linux: it scans both installed binaries, fails if either still carries emSign ECC Root CA - G3, and requires ISRG Root X1 as a positive control.
  • BROWSER.md and /setup-browser-cookies (its template and generated SKILL.md) now describe the gap as closed. The native cookie qualification pin moves to 1.65.0. docs/PROJECT_STRUCTURE.md drops the stale backport note; the /ship docs audit made that edit in b78ac13.

Why

"Chrome removed emSign ECC Root CA - G3" (#3338). That root signed eight eMudhra intermediates whose keys were compromised. gstack's headless browser gets no CRLSet, so its compiled root store is its only defense, and Chromium 156 still trusted that root. With Chromium 158 the bundled browser refuses those certificates.

Blast radius

This changes a shipped dependency and the browser every browse-based skill drives. The 1.65.0 tarballs' integrity hashes in bun.lock match what npm view [email protected] dist.integrity and npm view [email protected] dist.integrity return (script ran). CI's free suite passed at this exact tree: run 42254806829, 35991 tests. The installed browse binary loaded example.com with a 200 and refused the eMudhra test host with ERR_CERT_AUTHORITY_INVALID (repro below). Upgraded installs need ./setup to download Chromium revision 1254; the setup launch probe triggers that download when the revision is missing (file:line read by two reviewers).

Approvals

No approvals recorded for branch capy/gst-1652-playwright-1-65.

Summary

Fixes the trust gap in #3338 by moving to Playwright 1.65.0, whose Chromium 158 no longer carries the distrusted eMudhra root. The Windows windowsHide patch is re-cut for the new version, and new free tests fail if the bundled Chromium falls back below 158.0.8115.0 or still carries the root.

Test Coverage

All new code paths have test coverage (Step 7 audit, audit-only).

COVERAGE: 7/7 paths tested (100%) | value-weighted 7/7 (100%)
QUALITY: ★★★:1 ★★:6 ★:0 | GAPS: 0

Tests: 1739 → 1739 (+0 new in this /ship run; the lane added the two test files before /ship)
Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered (weak = ★, gate-failing or unrated).
Tests ran: free 1614 (files; carried from CI run 42254806829, 35991 tests)

Pre-Landing Review

Pre-Landing Review: 1 issues — 0 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 1 noted

Step 11 (adversarial): 4 findings, all below the floor and noted; 0 fixed, 0 deferred.

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=0 scope=frozen ledgers_read=3 dispatches=4

Gate edits: none detected (5 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

The full panel ran on the whole diff at 89c7670: a batched specialist (testing, security, state-machines), the Red Team, the native adversarial reader and an outside voice (openai/gpt-6.1-sol on a host subagent, completed). The specialists, the Red Team and the outside voice returned no findings. The native adversarial reader returned 4 Low findings, all Blocks: no. The security read covered TLS trust (Chromium 158.0.8127.18 for both bundled builds), the patch hunk (forcing windowsHide: true overrides only the ffmpeg recorder, which already passes true) and the supply chain (lockfile integrity matches npm).

Outside review: completed, no findings (openai/gpt-6.1-sol host subagent).

Review notes

Below the blocking floor; recorded here and not fixed in this PR.

  • INFORMATIONAL .github/dependabot.yml:16 The dependabot ignore comment still calls the Playwright 1.64 migration pending (build(deps): bump the production-dependencies group across 1 directory with 4 updates #2923). The ignore rule is still correct, because the patch is still keyed to one version. (core and adversarial-native)
  • INFORMATIONAL browse/src/cookie-import-native.ts:112 Windows native-cookie qualification receipts must match the exact Playwright version, so 1.64.1 receipts no longer qualify. This fails closed, and cookie-import-native-qualification.json is [] on main, so no shipped receipt is lost. (adversarial-native)
  • INFORMATIONAL package.json:80 Pre-existing: with a ^1.65.0 range and an exact patchedDependencies key, a Dependabot patch bump would drop the windowsHide patch. playwright-core-patch.test.ts catches that in CI. (adversarial-native)
  • INFORMATIONAL changelog.d/capy-gst-1652-playwright-1-65.md:3 The root-store scan runs on Linux only. On macOS only the 158.0.8115.0 version floor guards, so the "or still carries the root" clause is Linux-only. (adversarial-native)
  • Not a finding: the coverage reader said the diff deletes main's changelog.d/gst-1631-browse-audit-redaction_scope.md. That came from a two-dot diff against origin/main, which moved after the branch was cut. The merge-base diff does not touch that file.

Exploratory QA

Surface: functional (the shipped browse/dist/browse CLI against public hosts). Smoke budget: 300 s, 2 probes, both pass (checkpoint 002).

Capture Command Contract Result
001 browse goto https://example.com/ the bundled headless shell still loads a publicly trusted site pass: exit 0, Navigated to https://example.com/ (200)
002 browse goto https://dv-g3b-emudhra.we-have-a-problem.com/ #3338: a certificate chaining to the removed root is refused pass: exit 1, net::ERR_CERT_AUTHORITY_INVALID

Limits: only the Linux headless shell was probed. Headed full Chromium is covered by bundled-chromium-root-store.test.ts and by the lane's earlier A/B run. Windows and macOS were not probed.

Design Review

No frontend files changed — design review skipped.

Eval Results

Eval selector (bun run eval:select, PR profile, full-fallback because BROWSER.md and the patch are unknown dependencies): 0 PR-pass cases selected ("No quick live coverage"). The selected behaviors and the deferred setup-browser-cookies prompt checks are scheduled/release coverage. No paid eval ran; spend $0 of the $10 cap.

Review bot comments

No review bot comments.

Scope Drift

Scope Check: CLEAN. Intent: upgrade Playwright so the bundled Chromium stops trusting the removed eMudhra root (#3338). Delivered: the 1.65.0 bump, the re-cut patch, regression tests, docs and the qualification pin.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.

Issues

Refs #3338

Verification Results

No plan-specific verification items (no plan bound). The automatic diff-scoped QA above passed 2 of 2.

TODOS

No TODO items completed in this PR.

Documentation

Status: current. The branch's docs already match the Playwright 1.65.0 upgrade.

Scope: committed diff main...89c7670 (12 files) plus the unstaged docs/PROJECT_STRUCTURE.md edit, and a search of all tracked .md/.tmpl files for stale Playwright, Chromium and patch references.

File Status
BROWSER.md Current: the eMudhra section says the gap is closed in 1.65.0 / Chromium 158.0.8127.18
docs/PROJECT_STRUCTURE.md Current: the patches/ note lists only windowsHide
setup-browser-cookies/SKILL.md.tmpl (+ generated SKILL.md) Current: the eMudhra warning is removed
changelog.d/capy-gst-1652-playwright-1-65.md Consistent with the diff

Coverage debt: none. Diagram drift: none.

Test plan

  • free (bun run test): carried from CI run 42254806829 at tree 0bff0527d53f, 35991 tests, 0 failed
  • bun test browse/test/playwright-core-patch.test.ts browse/test/bundled-chromium-root-store.test.ts: 8 pass, 0 fail
  • bun run build: ok
  • guards (typecheck, skill-size, parity-suite, context-budget, goldens, conflict-markers): pass at tree 0bff0527d53f

🤖 Generated with Claude Code

Open in Capy

…root (#3338)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant