
CVE-2026-126902 - Google Chrome - High - Remote - Incorrect reference resolution - Web Share staging follows a symlink on Mac. Chrome < 157.0.8103.78.
Chrome on Mac stores a Web Share file by opening a path under
Default/WebShare/share-<uuid>/. Before 157.0.8103.78 that open used
FLAG_CREATE_ALWAYS. That flag follows a symbolic link and truncates the
target. Plant a symlink at the staging name, share a tiny text file, and the
canary on the other end of the link becomes the share blob.
Patched Chrome deletes the staging entry first (DeleteFile does not follow
the link) and then opens with FLAG_CREATE | FLAG_NO_FOLLOW. The canary
stays put. The share lands in a new regular file.
That is CVE-2026-126902. Google called it High: incorrect reference resolution in Browser on Mac, "arbitrary code outside the sandbox" if the renderer is already compromised. This pack is the truncated canary, not a shell.
Class: Incorrect reference resolution / symlink follow (CWE-706) Reach: Remote HTML plus a Web Share of a file, on Mac, after the renderer is already in the attacker's hands
| ID | CVE-2026-126902 |
| Class | Incorrect reference resolution (CWE-706) |
| Reach | Remote (crafted HTML, Mac Web Share) |
| Product | Google Chrome on macOS |
| Affected | Chrome on Mac before 157.0.8103.78 (157.0.8103.78/.79) |
| Fixed | Chrome 157.0.8103.78, Chromium CL 8712360 (Icadbde3684b1cbd872296828373523b89c47f831), M157 cherry-pick 8737571 |
| Chrome rating | High |
| Auth | none on the page; Web Share is a user-gesture API |
| License | GNU Affero GPL v3.0 |
| Lab | native mac-arm64 Chrome for Testing |
| Method | Sink | Result |
|---|---|---|
Plant a symlink at Default/WebShare/share-<uuid>/share-witness.txt, then navigator.share({files}) | StoreFileTask::Start FLAG_CREATE_ALWAYS | Lab-proven: Chrome 157.0.8103.50 writes the share blob through the symlink (canary=blob, staging still a link). 157.0.8103.78 leaves the canary as witness and writes a regular file |
| Same open on a hard link | truncate the hard-link target | Inferred from the patch. DeleteFile drops the directory entry without touching the other name |
| Turn the write into code outside the sandbox | renderer already compromised, then this write | Not attempted. No payload. Google rates the class as code exec outside the sandbox given a renderer compromise |
The share directory is created on a worker before the UI thread opens the file. The lab races a planter against that open.
FLAG_CREATE_ALWAYS is "create or truncate," and on POSIX it follows a
symlink. CL 8712360 (Dibyajyoti Pal, reviewed by Nate Chapin and Marijn
Kruisselbrink) deletes first, then FLAG_CREATE | FLAG_NO_FOLLOW. A second
entry at that path becomes PERMISSION_DENIED. Chromium issue 580867480
stays restricted. The patch is public.
Native mac-arm64 Chrome for Testing. Loopback page, CDP user-gesture
navigator.share. A helper process plants os.symlink(canary, staging)
the moment share-<uuid> appears.
python3 chrome-mac-webshare-symlink-Abraxas-Labs.py
or:
cd lab && ./run.sh
Needs Chrome for Testing 157.0.8103.50 and 157.0.8103.78 unpacked under
/tmp/cve126909-chrome/chrome-mac-arm64-<version>/. Last proven line:
SUCCESS CVE-2026-126902 vuln=truncated fixed=intact CVE-2026-126902-WEBSHARE-LINK-WITNESS
| File | Purpose |
|---|---|
lab/poc.py | loopback page, CDP share, symlink planter, canary differential |
lab/run.sh | run poc.py and keep the last SUCCESS/FAIL line |
Abraxas Labs [email protected]