Incorrect authorization in Extensions (CVE-2026-87591)
Chrome's per-site 'Allow extensions on this site' block stops script injection but not the chrome.cookies API, so an extension with cookies and host permissions can still read, watch, create and delete cookies on a blocked origin. The reporter shows a synthetic HttpOnly session cookie being read, exfiltrated and replayed to reach a private page.
Originally disclosed on Chrome VRP
- Fix shipped in 33 days
Report description
chrome.cookies ignores user-blocked sites and exposes HttpOnly session cookies
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
The problem
Please describe the technical details of the vulnerability
Summary
Chrome's global Allow extensions on this site control blocks script
injection on a user-restricted origin, but the same restriction is not applied
to the chrome.cookies API. An extension with the documented cookies and
host permissions can continue reading, monitoring, creating, and removing
cookies for an origin after the user explicitly blocks all extensions there.
The attached PoC demonstrates the discrepancy with synthetic data. On the same
restricted origin, chrome.scripting.executeScript() returns Error: Blocked,
while chrome.cookies.get() returns the complete value of an authenticated
HttpOnly session cookie. chrome.cookies.onChanged also receives a second
HttpOnly cookie created after the restriction is active, and set() plus
remove() both succeed. Finally, the PoC sends the stolen synthetic credential
to a separate local origin, which replays it against /private and receives the
authenticated account response.
I confirmed this without Chrome feature or security flags in Chrome for Testing
Beta 152.0.7977.30 and Dev 153.0.7979.3 on macOS arm64.
Steps to reproduce
-
Run the attached server:
Bash python3 server.py -
Open
chrome://extensions, enable Developer mode, and load the attached extension files as an unpacked extension. -
Visit
http://127.0.0.1:18774/set-cookie. The response creates:Text victim_session=SYNTHETIC_HTTPONLY_SESSION_4E8D1C93; HttpOnly -
From Chrome's extensions menu, turn off Allow extensions on this site for
http://127.0.0.1:18774, then reload. Chrome now states that extensions are not allowed on this site. -
Visit
http://127.0.0.1:18774/passive-eventafter the block is active. The response creates a secondHttpOnlycookie namedpassive_secret. -
Visit
http://127.0.0.1:18774/private, open the PoC extension, and click Run probe. -
The server started in step 1 also runs a synthetic attacker collector at
http://127.0.0.1:18776. Observe the following result fields:JSON { "affected": true, "expectedControl": { "scriptInjectionBlocked": true, "result": {"ok": false, "error": "Error: Blocked"} }, "confidentiality": { "httpOnlyCookieRead": { "ok": true, "value": { "httpOnly": true, "name": "victim_session", "value": "SYNTHETIC_HTTPONLY_SESSION_4E8D1C93" } }, "sessionHijackConfirmed": true, "exfiltrationAndReplay": { "ok": true, "value": {"replayStatus": 200, "authenticated": true} } }, "passiveEventAfterBlock": { "cookie": { "httpOnly": true, "name": "passive_secret", "value": "PASSIVE_HTTPONLY_EVENT_91B6D2E4" } } } -
The same output shows that the extension creates, reads, and removes
proof_mutation=EXTENSION_WROTE_BLOCKED_SITE_7F4A2B10on the blocked origin.
Expected behavior
Once the user blocks extensions on an origin, cookie API calls for that origin
should be rejected, cookies from that origin should be omitted from getAll(),
and cookie change events for that origin should not be delivered.
Actual behavior
Only page/script access is denied. All tested cookie API read, event, write, and delete paths continue to expose or modify the blocked origin's cookie store.
Root cause
CheckHostPermissions() in cookies_api.cc calls
PermissionsData::HasHostPermission(). getAll() applies the same helper in
cookies_helpers.cc, and event delivery checks the extension's active manifest
permissions. These checks do not consult the global user-restricted-site list.
PermissionsData::HasHostPermission() checks explicit manifest access and
enterprise policy restrictions only. In contrast, GetPageAccess() reaches
CanRunOnPage(), which calls IsUrlBlockedByUser() and returns
PageAccess::kDenied. This explains why the script-injection control is blocked
while the cookie paths remain allowed.
- cookies_api.cc host check
- cookies_helpers.cc getAll filter
- event_dispatch_helper.cc URL permission check
- permissions_data.cc permission paths
- Chrome host-permission controls explicitly include cookies
Suggested fix
Require PageAccess::kAllowed, or at minimum reject
IsUrlBlockedByUser(url), for every chrome.cookies read/write operation and
for URL-scoped cookie event dispatch. Add regression tests covering get, both
getAll paths, set, remove, and onChanged with a globally
user-restricted origin.
Attachments
server.pymanifest.jsonworker.jspopup.htmlpopup.jsevidence/cft-beta-152/results.jsonevidence/cft-beta-152/popup-result.pngevidence/cft-dev-153/results.jsonevidence/cft-dev-153/popup-result.png
Impact analysis
Security impact
A malicious or compromised extension that requested cookies and matching host
permissions can bypass the user's explicit attempt to protect a sensitive site.
It can extract HttpOnly authentication credentials, exfiltrate and replay
them to impersonate the user, monitor newly issued or rotated credentials in
the background, and modify or delete site cookies even though Chrome tells the
user that extensions are not allowed on that site. The attached local replay
confirms the stolen value is sufficient to access the synthetic private account.
The report does not claim that the extension lacks declared permissions. The
security boundary being bypassed is the user's later, explicit host-access
restriction, which Chrome documents as applying to APIs that require host
permissions, including cookies.
The cause
What version of Chrome have you found the security issue in?
Beta 152.0.7977.30 and Dev 153.0.7979.3
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Other
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The cookie API's host-permission check only consults manifest and enterprise policy permissions and never the user's global restricted-site list, unlike the page-access path used for script injection.
Impact
A malicious or compromised extension with the right declared permissions could read HttpOnly session cookies, monitor new ones, and modify or delete cookies on a site the user explicitly blocked, then replay the stolen value to impersonate the user; the report notes the extension does hold its declared permissions, so only the later user restriction is bypassed.
What the attacker needed
Extension with cookies and host permissions; user blocks extensions on the target site; victim installs the extension
The fix
The cookie API should require full page access, or at least reject user-blocked URLs, for every read, write and event path, with regression tests for get, getAll, set, remove and onChanged.
How it was found
- Run the attached local test server.
- Load the attached extension as an unpacked extension in developer mode.
- Visit the set-cookie page so a synthetic HttpOnly session cookie is created.
- Turn off 'Allow extensions on this site' for that origin and reload.
- Visit the passive-event page so a second HttpOnly cookie is created after the block.
- Open the private page, run the extension probe and observe the cookie read, event, write and replay results.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Chrome lets you tell it that no extensions may run on a particular website. The report shows that this switch only stops extensions from injecting scripts into the page, while the cookie-reading part of the extension system still works there. That means an extension could still take a login cookie that the site marked as hidden from page scripts, which is exactly what the switch was meant to prevent.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.