Repository navigation
v1.94.31.0 fix(browse): Playwright 1.64.1 (Chromium 156) for the macOS sandbox-escape CVE; handoff honors GSTACK_CHROMIUM_PATH - #3947
Conversation
…M_PATH; bundled Chromium predates CVE-2026-106378 fix) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
handoff() always launched Playwright's bundled Chromium, so a GSTACK_CHROMIUM_PATH browser dropped back to the bundle at handoff. It now passes executablePath like launch() and launchHeaded(), skips the poisoned-bundle probe and XProtect heal for a custom path, and never loads the extension into a build that bakes it in. Co-authored-by: merit-blake <265362871+merit-blake@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Playwright 1.62.1 bundled Chromium 151.0.7922.34, which lacks the macOS GPU-process TCC fix (Chromium 0c2f3e54b265, crbug.com/507596239). 1.64.1 bundles 156.0.8078.4, which has it. The playwright-core patch is regenerated from our 1.62.1 patch: the launch windowsHide and TcpPortRandomizationWin hunks carry over unchanged; the taskkill hunk is dropped because 1.64 passes windowsHide there upstream. Co-authored-by: merit-blake <265362871+merit-blake@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…in check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ROMIUM_PATH (#3907) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…handoff Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
E2E Evals: ❌ FAIL124 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $33.75 rule/judge cost | reconcile exit: 1 Profile: pr / mode Full gate restored by:
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Failures and split verdictsFlaky: failed once, passed on its one rerun (rule 16)Each failed and passed on its rerun in run 41662815506 at the attempts named above. Logged for the daily flaky-fix pass in this run's Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
…/playwright-1.64.1
CVE evidence (source check, not an exploit run)
playwright-core@1.62.1browsers.json(revision 1234)151.0.7922.34(refs/branch-heads/7922@{#1230}),content/browser/gpu/gpu_process_host.cchas nokMacDisclaimGpuTccResponsibilityandbase/process/process_info.hhas noIsCurrentProcessSelfResponsible, so no cherry-pick reached that branch eitherplaywright-core@1.64.1browsers.json(revision 1248)156.0.8078.4(main@{#1706082}),BASE_FEATURE(kMacDisclaimGpuTccResponsibility, base::FEATURE_ENABLED_BY_DEFAULT)is atgpu_process_host.cc:157, theDisclaimResponsibility()override at:477andIsCurrentProcessSelfResponsible()atprocess_info_mac.mm:43The fix is Chromium 0c2f3e54b265, "[macOS] Disclaim TCC responsibility for GPU process" (Bug 507596239,
main@{#1695786}). It is also present at 155.0.8059.12 and 156.0.8078.74. The pwn.ai write-up says it "shipped in Chrome 155". Bothbrowsers.jsonfiles came from the npm tarballs, and the tarball integrity matchesbun.lock.What changed
Bundled Chromium moves from 151, which lacks the macOS GPU sandbox-escape fix, to 156, which has it.
browse handoffnow launches theGSTACK_CHROMIUM_PATHbrowser.Before/after as text: Bundled Chromium moves from 151, which lacks the macOS GPU sandbox-escape fix, to 156, which has it; handoff now launches the GSTACK_CHROMIUM_PATH browser
Why
#3907 (an outside PR by @merit-blake) reported that gstack's browse engine pins Playwright 1.62.1, whose Chromium 151 predates the fix for CVE-2026-106378, a macOS Chrome sandbox escape. Code running in the GPU process could inject keystrokes into the desktop using the Terminal's permissions. Playwright starts Chromium directly, not through launchd, which is the launch path the escape needs. This PR moves gstack to Playwright 1.64.1 (Chromium 156, which has the fix). It also makes
browse handoffuse the browser you pinned withGSTACK_CHROMIUM_PATHinstead of falling back to the bundled one.Blast radius
Every gstack install downloads Chromium revision 1248 on its next
./setupor/gstack-upgrade. Headless, headed and handoff launches all run the new browser. The two gstack patch hunks that still matter apply unchanged to 1.64.1. The installed-tree tests prove they landed innode_modules, and CI's free tier exercises the browser end to end (script ran). Handoff with noGSTACK_CHROMIUM_PATHset takes the same path as before. The unit test checks that it still probes the bundle and still loads the extension, and I ran the real handoff on Linux with a custom path (repro). Native cookie import has no qualified builds checked in (cookie-import-native-qualification.jsonis[]), so changing the Playwright version strips no qualification (file read).Approvals
Approved: yes (record r-f6d446f1b395). The full approval record stays private: this repository is public or its visibility is unknown.
Documentation
Status: current. The re-audit after the merge of main (base 1ccab0d, head 0f76414) found nothing that needs an edit.
Scope: 15 committed files (Playwright 1.62.1 to 1.64.1, handoff support for GSTACK_CHROMIUM_PATH, the patch rename, tests, the changelog fragment). No staged, unstaged or new files. I searched the repo's tracked Markdown and templates for the Playwright version, the Chromium version and GSTACK_CHROMIUM_PATH. No banned-terms list exists.
Documentation health:
browse handoffand make-pdf; main's changes in other sections don't affect it)Coverage debt: GSTACK_CHROMIUM_PATH has reference coverage (troubleshooting, the design doc) but no how-to in BROWSER.md that explains custom-binary setup and its handoff behavior. That is a common gap; /document-generate could fill it. BROWSER.md:697's root-store note doesn't mention custom builds (minor).
Diagram drift: none found.
Summary
This is a rewrite of #3907 on current main. The outside branch was read as text only and never checked out, built or run. Three themes:
playwrightandplaywright-corego from 1.62.1 to 1.64.1. Chromium goes from 151.0.7922.34 (revision 1234) to 156.0.8078.4 (revision 1248). A new test inbrowse/test/playwright-core-patch.test.tsfails whenever the bundled Chromium is older than 155.0.8059.12, the first tag that has the fix. It failed on main with Chromium 151.browse handoffhonorsGSTACK_CHROMIUM_PATH. Before this,promoteToHeaded()never passedexecutablePath. So a browser pinned with the variable fell back to the bundle at handoff, the one point where a person takes over the session. Handoff now matcheslaunchHeaded(). It passes the custom path, skips the poisoned-bundle probe and XProtect heal for it, and doesn't load the extension into a build that bakes it in (isCustomChromium()). Three new tests inbrowse/test/browser-manager-custom-chromium.test.tsfailed on main:executablePathcame backundefined.The playwright-core patch, hunk by hunk
I regenerated
patches/playwright-core@1.64.1.patchwithbun patchfrom our 1.62.1 patch, applying its hunks to the pristine 1.64.1lib/coreBundle.js. The result is byte-identical to the patch in #3907 (same blob ids6893f1cf…7990e202), and I didn't copy theirs.windowsHide(Windows: playwright-core processLauncher launches chrome-headless-shell without windowsHide — console window per browser launch on the node path (follow-up to #2151, node_modules twin of #1989) #2160/Windows: residual browse console flash from vendored playwright-core processLauncher taskkill (missing windowsHide) — distinct from #1784 #1989), kept unchanged. 1.64.1'slaunchProcessspawn options still omitwindowsHide, so Node's default offalsewould flash a console window on Windows. The hunk moved from line 8906 to line 10031.taskkillwindowsHide, dropped. 1.64.1 moved the force kill intokillProcessTree(), which already callsspawnSync(\taskkill /pid ${pid} /T /F`, { shell: true, windowsHide: true })(coreBundle.js:10144). That is the onlytaskkillcall in the bundle. The installed-tree test still assertsshell: true, windowsHide: true`, so a future Playwright that loses it fails CI.TcpPortRandomizationWinbackport (fix(chromium): disable TCP port randomization on Windows microsoft/playwright#43605, lands in 1.65), kept unchanged. 1.64.1'sdisabledFeatureslist still lacks it. The hunk moved from line 34634 to line 36204.Lockfile and dependency security read
playwright1.62.1 → 1.64.1 (sha512-HCrVhHr5…) andplaywright-core1.62.1 → 1.64.1 (sha512-BC4s8y6S…). Both integrity values matchnpm view <pkg>@1.64.1 dist.integrity.fsevents@2.3.2, a darwin-only optional dependency. Playwright 1.64.1 no longer declares it.playwright-corestill has no dependencies.scriptsin itspackage.json, and the removedfseventswas the only optional native module.playwright install(gstack'sgstack-browser-ensureand./setup), fromcdn.playwright.devwith theplaywright.download.prss.microsoft.comfallback, as in 1.62.1. The one host change: Linux arm64 now gets the Chrome for Testing build (builds/cft/156.0.8078.4/linux-arm64/chrome-linux-arm64.zip) instead of a Playwright-built Chromium.test/setup-playwright-platform.test.tsnow expects that file name.--disable-featuresentry (above). It reads no environment variables and makes no network calls..gstack/pregate.jsongains one test lane (patches/**→browse/test/playwright-core-patch.test.ts) so the next bump maps its patch file without renaming anything. It adds a lane and loosens nothing.Test Coverage
Each of the 3 changed runtime files has a changed test naming it (
gstack-ship-preflight --audit), so no audit reader was needed.Received: -4), handoff launches theGSTACK_CHROMIUM_PATHbinary, and a baked-extension build gets no--load-extension.Pagediagnostic, sosecurity-audit-r2.test.tstypes its mock and the baseline drops one entry).Pre-Landing Review
No issues found.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=1 dispatches=2
Gate edits: 9 listed, 8 read, 0 findings. These are the test hunks above, each one tightening a check or following the version change. The one removed assertion (the
taskkillsite in the patch file) is still covered by the installed-tree check. A one-reader scoped fix-check on the last test hunk came back clean.Outside review: openai/gpt-6.1-sol (host subagent), completed, no actionable findings. Native adversarial pass: no findings.
Exploratory QA
On Linux with Chromium 156.0.8078.4, I symlinked the Playwright
chrometo a custom path and setGSTACK_CHROMIUM_PATHto it. Then I ranbrowse goto https://example.com(200),browse js navigator.userAgent(HeadlessChrome 156),browse handoff,browse status(Mode: headed, healthy) andps.psshowed the headed browser process running from the custom path, with a non-headless Chrome 156 user agent. Not run: macOS (no Mac in this lane), a visible window, and the exploit itself.I also ran BROWSER.md's own TLS check on 156.0.8078.4.
example.comreturned 200,dv-g3b-emudhra.we-have-a-problem.comreturned 200 andexpired.badssl.comgaveERR_CERT_DATE_INVALID. So the eMudhra root is still trusted, and BROWSER.md keeps its warning with the version updated.Design Review
No frontend files changed. Design review skipped.
Eval Results
No prompt, template or judge changed, so no lane eval ran.
eval:selectselects every gate case (full fallback) becausebun.lock,package.jsonand the patch changed. That coverage belongs to the train gate (gstack/full-gate).Review bot comments
No review bot comments.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug-fix lane with no autoplan (R65).
Issues
Fixes #3907
#3907 is the outside PR this rewrites. GitHub doesn't auto-close a PR from a closing keyword, so it gets closed by hand with a link once this merges.