Skip to content
Access control Advisory Intermediate CVE-2026-87446

Incomplete cleanup in Extensions (CVE-2026-87446)

After a user disables an extension's 'Allow access to file URLs' permission, an already-open DevTools session on a tab created by that extension can still read and modify local files. An attacker-controlled extension could therefore keep reading local files after the user revokes the permission, as long as the old DevTools session stays open.

Hafiizh Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 7 months

VULNERABILITY DETAILS This vulnerability is similar to https://issues.chromium.org/issues/376625003.

In this bug, when dev tools are still open and after "Allow access to file URLs" is set disabled, you can still access local files.

  1. Install the attached extension and allow "Allow access to file URLs".
  2. Open devtools on the new tab opened by the extension.
  3. Open and Edit the local file highlighted in the sources panel, and save the changes.
  4. Observe that extension pops up an alert with the new contents of this file.
  5. Open chrome://extensions/
  6. Disable "Allow access to file URLs".
  7. Open devtools on the new tab opened by the extension.
  8. Open and Edit the local file highlighted in the sources panel, and save the changes.
  9. Observe that extension pops up an alert is not shown
  10. Back to tab (step 3) then save it
  11. Alert appears (can still read local files)

VERSION Chrome Version:146.0.7680.1 (Official Build) canary-dcheck (64-bit) Operating System: Windows 11

REPRODUCTION CASE Please include a demonstration of the security bug, such as an attached HTML or binary file that reproduces the bug when loaded in Chrome. PLEASE make the file as small as possible and remove any content not required to demonstrate the bug, or any personal or confidential information.

Please attach files directly, not in zip or other archive formats, and if you've created a demonstration site please also attach the files needed to reproduce the demonstration locally.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [tab, browser, etc.] Crash State: [see link above: stack trace with symbols, registers, exception record] Client ID (if relevant): [see link above]

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: [goes here]

The original report as published on the Chromium issue tracker, by Hafiizh. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Chrome extensions can be granted access to file:// URLs through the per-extension setting "Allow access to file URLs" on chrome://extensions/. That toggle is the user-facing control that decides whether an extension may read local files. The report describes a case where turning the toggle off does not take effect for a DevTools session that was already open, so the extension can still read local files after the permission has been withdrawn.

The issue is filed against the Chrome VRP and is described as similar to an earlier issue, https://issues.chromium.org/issues/376625003. The weakness class recorded for it is incomplete cleanup: state that should be torn down when a permission is revoked is left in place.

Setup

  • Chrome Version: 146.0.7680.1 (Official Build) canary-dcheck (64-bit)
  • Operating System: Windows 11
  • A test extension, attached to the report, that opens a new tab and reads a local file
  • DevTools, used on the tab the extension opens
  • A local file that the extension highlights in the Sources panel

The precondition is that the extension has been granted "Allow access to file URLs" at least once, and that a DevTools session on the extension's tab stays open across the moment the permission is revoked.

Finding it

The report shows that after "Allow access to file URLs" is disabled, an older DevTools session still reads the local file. After "Allow access to file URLs" is disabled, a fresh DevTools session on the extension's tab shows no alert, but an older session opened while the permission was granted still reads the file. The extension is then able to read the file and surface its contents, which is exactly what the toggle is supposed to prevent.

Exploitation

Step 1: grant file access

Install the attached extension and allow "Allow access to file URLs".

Step 2: open DevTools on the extension's tab

Open DevTools on the new tab opened by the extension.

Step 3: edit and save the local file

Open and edit the local file highlighted in the Sources panel, and save the changes.

Step 4: confirm the read works

Observe that the extension pops up an alert with the new contents of this file. This establishes the baseline: with the permission granted, the extension reads the file and reports its contents.

Step 5: open the extensions page

Navigate to:

Text
chrome://extensions/

Step 6: revoke file access

Disable "Allow access to file URLs".

Step 7: open a fresh DevTools session

Step 8: edit and save again

Step 9: observe the fresh session is blocked

Observe that the extension's alert is not shown. The new DevTools session respects the revoked permission, which confirms the toggle itself is being applied to newly created sessions.

Step 10: go back to the old session and save

Back to the tab from step 3, then save it.

Step 11: observe the stale session still reads the file

The alert appears, so the extension can still read local files through the DevTools session that was opened before the permission was revoked.

Root cause

The report does not describe the code path involved. The weakness class recorded for the issue is incomplete cleanup.

Impact

An extension that has had its file access revoked can continue to read local files for as long as a DevTools session opened before the revocation remains open. The user's expectation when disabling the toggle is that access stops; here it does not, and the extension can still surface file contents, as the alert in step 11 demonstrates. The report does not describe any scenario beyond the extension reading files it should no longer be able to read, and the severity recorded for the issue is medium.

Fix

Variants to test

  1. Revoke the permission while DevTools is open on the extension's tab, then trigger a read from the extension's own code rather than from the Sources panel, and check whether the read still succeeds.
  2. Open several DevTools sessions on the extension's tab before revoking, then save from each one after revocation, and check whether any of them still reads the file.
  3. Toggle "Allow access to file URLs" off and back on, then save from a session opened before the first toggle, and check whether the session picks up the new state or keeps the old one.
  4. Close and reopen DevTools after revocation, then save, and confirm the block seen in step 9 still applies, which separates a stale-session bug from a general permission bug.

A positive result in each case is the extension still reading the local file, or still showing the alert with its contents, after the permission has been revoked.

Hunting notes

This kind of bug sits where a user-facing permission toggle meets long-lived sessions: DevTools, extension background pages, and any surface that caches a permission decision at creation time. During recon, look for settings that are described as taking effect immediately and check whether already-open sessions honour the change. The report shows impact with an attached extension and a single local file. and the decisive evidence is the contrast between step 9 (new session blocked) and step 11 (old session still reads the file), which isolates the stale session as the cause rather than a broken toggle.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Chrome extensions are small programs you add to the browser. Some of them can be given permission to read files on your own computer, which are called local files and have addresses starting with file://. Chrome gives you a switch for this on its extensions page, labelled "Allow access to file URLs". When the switch is on, the extension may read local files. When you turn it off, you expect the extension to lose that ability straight away.

This report describes a case where turning the switch off does not fully work. If a developer tools window (DevTools, the panel built into Chrome that web developers use to inspect and edit pages) was already open on a tab belonging to the extension, that old window keeps its access. The extension can still read local files through it, even though you have just told Chrome to stop allowing that.

The weakness is classed as incomplete cleanup. That means something that should be tidied away when a permission is taken back is left in place. The report was filed through the Chrome VRP (Vulnerability Reward Program, Google's scheme for paying people who report security bugs in Chrome), the recorded severity is medium, and the reporter was credited as Hafiizh.

Context

An extension can be granted access to file:// URLs through a per-extension setting on chrome://extensions/ called "Allow access to file URLs". A URL is simply the address of something, like a web page or a file; file:// addresses point at files on your own disk rather than on the internet. The toggle is the control the user sees and understands: it decides whether an extension may read local files.

The report describes a case where turning the toggle off does not take effect for a DevTools session that was already open. DevTools is the set of tools built into Chrome for looking at and changing what a page or extension is doing. A session here means one open DevTools window attached to one tab. Because the old session is not updated, the extension can still read local files after the permission has been withdrawn.

The issue is filed against the Chrome VRP and is described as similar to an earlier issue, https://issues.chromium.org/issues/376625003. The weakness class recorded for it is incomplete cleanup: state that should be torn down when a permission is revoked is left in place. State, in this sense, is stored information the browser keeps about what is currently happening, such as which sessions are open and what each of them is allowed to do.

Setup

The conditions needed to reproduce the bug were:

  • Chrome Version: 146.0.7680.1 (Official Build) canary-dcheck (64-bit)
  • Operating System: Windows 11
  • A test extension, attached to the report, that opens a new tab and reads a local file
  • DevTools, used on the tab the extension opens
  • A local file that the extension highlights in the Sources panel

The Sources panel is the part of DevTools that lists the files a page or extension has loaded and lets you open and edit them. A canary build is an early, experimental version of Chrome used for testing.

The precondition is that the extension has been granted "Allow access to file URLs" at least once, and that a DevTools session on the extension's tab stays open across the moment the permission is revoked. In other words, the bug only appears when an old window survives the change.

Finding it

The report shows that after "Allow access to file URLs" is disabled, an older DevTools session still reads the local file. A permission check is the moment the browser asks itself "is this allowed?" before doing something. If the answer is worked out once and then reused, later changes to the setting are missed.

After "Allow access to file URLs" is disabled, a fresh DevTools session on the extension's tab shows no alert, but an older session opened while the permission was granted still reads the file. The extension is then able to read the file and surface its contents, which is exactly what the toggle is supposed to prevent.

Exploitation

The steps below are the reproduction. Each one is followed by why it matters.

Step 1: grant file access

Install the attached extension and allow "Allow access to file URLs".

This sets up the starting point: the extension is allowed to read local files, so anything it does with them is legitimate for now.

Step 2: open DevTools on the extension's tab

Open DevTools on the new tab opened by the extension.

This creates the long-lived session that will later be the problem. It is opened while permission is still granted, which is the key detail.

Step 3: edit and save the local file

Open and edit the local file highlighted in the Sources panel, and save the changes.

Saving from the Sources panel is the action that makes the extension read the file. Editing first gives the file new contents, so the result is easy to recognise.

Step 4: confirm the read works

Observe that the extension pops up an alert with the new contents of this file. This establishes the baseline: with the permission granted, the extension reads the file and reports its contents.

An alert is the simple pop-up box a browser can show. Seeing the new contents proves the extension really did read the file, not just display something it already had.

Step 5: open the extensions page

Navigate to:

Text
chrome://extensions/

This is Chrome's built-in page for managing extensions. Addresses starting with chrome:// are internal browser pages rather than websites. This is where the permission toggle lives.

Step 6: revoke file access

Disable "Allow access to file URLs".

This is the user withdrawing permission. From this moment the extension should no longer be able to read local files.

Step 7: open a fresh DevTools session

This creates a second session, opened after the permission was removed. It is the control in the experiment: it shows what should happen.

Step 8: edit and save again

This repeats the same action as step 3, but now from the new session, after revocation.

Step 9: observe the fresh session is blocked

Observe that the extension's alert is not shown. The new DevTools session respects the revoked permission, which confirms the toggle itself is being applied to newly created sessions.

No alert means no read. This rules out the idea that the toggle is simply broken; it works for sessions created after the change.

Step 10: go back to the old session and save

Back to the tab from step 3, then save it.

This returns to the session that was opened before the permission was removed and repeats the save there.

Step 11: observe the stale session still reads the file

The alert appears, so the extension can still read local files through the DevTools session that was opened before the permission was revoked.

A stale session is one that is still open but no longer reflects the current settings. The alert here is the proof: the old session kept access that the user had already taken away.

Root cause

The report does not describe the code path involved. To invalidate something is to mark it as no longer valid, so that it cannot be used again. The weakness class recorded for the issue is incomplete cleanup.

A useful comparison is a building pass. If the pass is checked once at the door and never again, then cancelling it at reception does nothing for someone already inside. A cache is a stored copy of an answer kept to save time; if the stored answer is never refreshed, it goes out of date.

Impact

An extension that has had its file access revoked can continue to read local files for as long as a DevTools session opened before the revocation remains open. The user's expectation when disabling the toggle is that access stops; here it does not, and the extension can still surface file contents, as the alert in step 11 demonstrates.

The report does not describe any scenario beyond the extension reading files it should no longer be able to read, and the severity recorded for the issue is medium. Severity is a rough measure of how much harm a bug could do; medium sits in the middle of the usual low, medium, high scale.

Fix

Variants to test

These are follow-up experiments that check whether the same weakness appears in slightly different situations. A variant is a nearby version of the same bug.

  1. Revoke the permission while DevTools is open on the extension's tab, then trigger a read from the extension's own code rather than from the Sources panel, and check whether the read still succeeds.
  2. Open several DevTools sessions on the extension's tab before revoking, then save from each one after revocation, and check whether any of them still reads the file.
  3. Toggle "Allow access to file URLs" off and back on, then save from a session opened before the first toggle, and check whether the session picks up the new state or keeps the old one.
  4. Close and reopen DevTools after revocation, then save, and confirm the block seen in step 9 still applies, which separates a stale-session bug from a general permission bug.

A positive result in each case is the extension still reading the local file, or still showing the alert with its contents, after the permission has been revoked.

Hunting notes

This kind of bug sits where a user-facing permission toggle meets long-lived sessions: DevTools, extension background pages, and any surface that caches a permission decision at creation time. A background page is a hidden part of an extension that keeps running without a visible tab. Recon, short for reconnaissance, means the early survey work of looking around a product for places worth testing.

During recon, look for settings that are described as taking effect immediately and check whether already-open sessions honour the change. The report shows impact with an attached extension and a single local file. and the decisive evidence is the contrast between step 9 (new session blocked) and step 11 (old session still reads the file), which isolates the stale session as the cause rather than a broken toggle.

Glossary

  • Alert: a simple pop-up box a browser can show to display a message.
  • Cache: a stored copy of an answer kept to save time, which can go out of date if not refreshed.
  • Canary build: an early, experimental version of Chrome used for testing.
  • Chrome VRP: Chrome Vulnerability Reward Program, Google's scheme for paying people who report security bugs in Chrome.
  • DevTools: the set of tools built into Chrome for inspecting and changing what a page or extension is doing.
  • Extension: a small program added to the browser to give it extra features.
  • file:// URL: an address that points at a file on your own computer rather than on the internet.
  • Incomplete cleanup: a weakness where something that should be removed when a permission is taken back is left in place.
  • Invalidate: to mark something as no longer valid so it cannot be used again.
  • Local file: a file stored on your own computer.
  • Permission check: the moment the browser asks itself whether an action is allowed before doing it.
  • Recon: reconnaissance, the early survey work of looking around a product for places worth testing.
  • Revoke: to take back a permission that was previously granted.
  • Severity: a rough measure of how much harm a bug could do, usually on a low, medium, high scale.
  • Sources panel: the part of DevTools that lists loaded files and lets you open and edit them.
  • Stale session: an open session that no longer reflects the current settings.
  • State: stored information the browser keeps about what is currently happening.
  • Toggle: a switch in a settings page that turns a feature on or off.
  • URL: the address of something, such as a web page or a file.
  • Variant: a nearby version of the same bug, tested in a slightly different situation.

More by Hafiizh

View all

78 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.