Missing authorization in Extensions (CVE-2026-113174)
An incomplete fix for an earlier bug left EventSource and sendBeacon requests from an extension's isolated world still routed through a page's service worker. A malicious site with an active service worker could inject fake server-sent event data into an extension and read the body of the extension's sendBeacon requests.
- Fix shipped in 6 months
Report description
Incomplete fix for CVE-2024-10229: service worker still intercepts EventSource and sendBeacon from extension isolated worlds
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
The problem
Please describe the technical details of the vulnerability
Tested on: Chromium 146.0.7680.164 (Ubuntu snap package, Ubuntu 24.04 LTS x86_64), default settings, no flags.
Summary
CVE-2024-10229 fixed service worker interception of some extension content script requests from isolated worlds. Based on local testing, fetch() and XHR now bypass the page's service worker, but EventSource and sendBeacon still appear to go through it.
A page-controlled service worker can:
- return attacker-controlled data to an extension's EventSource
- observe the body of an extension's sendBeacon
PoC Setup
Place the attached files into two folders:
extension/-- manifest.json, content.js (the test extension)server/-- server.py, sw.js, index.html (the attacker's page and service worker)
Requires: Python 3 and Chromium (or Chrome). No other dependencies.
Steps to Reproduce
-
Open a terminal in the PoC root folder and start the server:
python3 server/server.py -
Open a second terminal in the same folder and launch Chromium:
chromium --no-first-run --user-data-dir=/tmp/es-test \ --load-extension=extension/ \ http://localhost:8888 -
In the browser, press F12 to open DevTools and go to the Console tab
-
Refresh the page once (this lets the service worker activate and claim the page)
-
The content script runs all four tests and prints a results block:
=== RESULTS === EventSource: INJECTED_BY_SERVICE_WORKER fetch: data: REAL_SERVER_DATA XHR: timeout sendBeacon: INTERCEPTED by SW (body: {"secret":"EXTENSION_DATA"}) ===============
EventSource and sendBeacon are intercepted by the service worker. fetch and XHR are not. (XHR shows "timeout" because the SSE stream stays open, but it was not intercepted by the SW -- the request went to the real server.)
Expected Result
Requests from extension isolated worlds should not be observable or response-controllable by a page service worker. Current stable already enforces this for fetch() and XHR.
Actual Result
EventSource and sendBeacon from the isolated world are still handled by the page's service worker, while fetch() and XHR are not.
Additional Notes
Based on source review of current Chromium, third_party/blink/renderer/modules/eventsource/event_source.cc (Connect()) and third_party/blink/renderer/core/loader/ping_loader.cc (SendBeaconCommon()) do not call SetSkipServiceWorker(true) for isolated worlds, while fetch_manager.cc and xml_http_request.cc do.
Impact analysis
A malicious site with an active service worker can still intercept network requests from an extension content script's isolated world when the script uses EventSource or sendBeacon. This allows attacker-controlled response injection into EventSource and disclosure of sendBeacon payloads across the same isolation boundary that CVE-2024-10229 was meant to protect.
If an extension uses EventSource on a page where a malicious service worker controls the origin, the worker can replace the SSE data the extension receives.
The cause
What version of Chrome have you found the security issue in?
146.0.7680.164 stable
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Sensitive data exposure
How would you like to be publicly acknowledged for your report?
foxribeye
Context
Chrome extensions can run content scripts in an isolated world: a JavaScript execution environment that shares the page's DOM but not its JavaScript objects. The isolation is meant to stop the page from reading or influencing what the extension does. One part of that boundary is network behaviour: requests made from an extension's isolated world should not be observable or response-controllable by a service worker that the page itself controls.
CVE-2024-10229 addressed exactly this problem for some extension content script requests originating in isolated worlds. This report is about an incomplete fix: after that change, two request paths still reach the page's service worker.
The affected code lives in Blink, Chromium's rendering engine. The reporter points at third_party/blink/renderer/modules/eventsource/event_source.cc as the location of the issue.
Setup
The testing was done on Chromium 146.0.7680.164, the Ubuntu snap package, on Ubuntu 24.04 LTS x86_64, with default settings and no flags. The only dependencies are Python 3 and Chromium (or Chrome).
The proof of concept is split into two folders:
extension/containsmanifest.jsonandcontent.js, the test extension.server/containsserver.py,sw.jsandindex.html, the attacker's page and service worker.
The extension's content script runs four tests from its isolated world: EventSource, fetch, XHR and sendBeacon. The server/ folder holds the attacker's page and service worker. The point of the setup is to see which of the four request types the service worker can see or answer.
Finding it
The starting observation is that CVE-2024-10229 fixed service worker interception for some extension content script requests from isolated worlds, but, based on local testing, only partially. fetch() and XHR now bypass the page's service worker. EventSource and sendBeacon still appear to go through it.
That matters because a page-controlled service worker that handles these requests can do two things:
- return attacker-controlled data to an extension's
EventSource - observe the body of an extension's
sendBeacon
Both cross the isolation boundary the earlier fix was meant to protect.
Exploitation
Step 1: start the attacker server
Open a terminal in the PoC root folder and start the server:
python3 server/server.py
This starts the Python server from the PoC root folder.
Step 2: launch Chromium with the test extension
Open a second terminal in the same folder and launch Chromium with the extension loaded and the attacker page as the start URL:
chromium --no-first-run --user-data-dir=/tmp/es-test \
--load-extension=extension/ \
http://localhost:8888
--load-extension=extension/ loads the test extension, whose content script performs the four requests from its isolated world. --user-data-dir=/tmp/es-test sets the profile directory used for the run. The URL http://localhost:8888 is opened as the start page.
Step 3: open the DevTools console
In the browser, press F12 to open DevTools and go to the Console tab. The content script prints its results there.
Step 4: refresh the page once
Refresh the page once. This lets the service worker activate and claim the page.
Step 5: read the results
The content script runs all four tests and prints a results block:
=== RESULTS ===
EventSource: INJECTED_BY_SERVICE_WORKER
fetch: data: REAL_SERVER_DATA
XHR: timeout
sendBeacon: INTERCEPTED by SW (body: {"secret":"EXTENSION_DATA"})
===============
The block shows the split clearly:
EventSourcereportsINJECTED_BY_SERVICE_WORKER: the service worker returned attacker-controlled data to the extension's event stream.fetchreportsdata: REAL_SERVER_DATA: the request reached the real server, not the service worker.XHRreportstimeout. This is not interception: the SSE stream stays open, so the XHR test times out, but the request went to the real server.sendBeaconreportsINTERCEPTED by SW (body: {"secret":"EXTENSION_DATA"}): the service worker intercepted the beacon and the body sent by the extension was visible.
So EventSource and sendBeacon are intercepted by the service worker, while fetch and XHR are not.
Root cause
The reporter reviewed the current Chromium source. In third_party/blink/renderer/modules/eventsource/event_source.cc, the Connect() function does not call SetSkipServiceWorker(true) for isolated worlds. The same is true of SendBeaconCommon() in third_party/blink/renderer/core/loader/ping_loader.cc. By contrast, fetch_manager.cc and xml_http_request.cc do call it, while fetch_manager.cc and xml_http_request.cc do call it.
In other words, the EventSource and beacon paths do not set the skip flag, while the fetch and XHR paths do. Those two request types therefore still consult the page's service worker when issued from an extension isolated world.
Impact
A malicious site with an active service worker can still intercept network requests from an extension content script's isolated world when the script uses EventSource or sendBeacon. This allows attacker-controlled response injection into EventSource and disclosure of sendBeacon payloads across the same isolation boundary that CVE-2024-10229 was meant to protect.
Concretely, if an extension uses EventSource on a page where a malicious service worker controls the origin, the worker can replace the SSE data the extension receives. For sendBeacon, the worker can observe the body the extension sends. The exposure depends on the extension using these APIs from its isolated world on a page whose origin is controlled by an attacker's service worker.
Fix
The report does not describe a fix. Based on the source review in the report, the gap is that Connect() in event_source.cc and SendBeaconCommon() in ping_loader.cc do not call SetSkipServiceWorker(true) for isolated worlds, unlike the fetch and XHR paths. The report does not describe a fix.
Variants to test
- Other request APIs reachable from an extension isolated world: check whether each one sets
SetSkipServiceWorker(true)for isolated worlds. A positive result is a request whose response is produced by the page's service worker rather than the real server, or whose body the worker can read. - The same four tests on other Chromium versions and channels: a positive result is
EventSourceorsendBeaconbeing intercepted wherefetchand XHR are not, which would show the gap persists or has regressed. - Extensions that use
EventSourceagainst origins an attacker can control: a positive result is the extension receiving SSE data that differs from what the real server sent. - Extensions that use
sendBeaconto send sensitive data: a positive result is the service worker observing the beacon body, as in theINTERCEPTED by SWline above.
What happened, in plain words
Chrome lets extensions add small programs to web pages. These programs are called content scripts. Chrome runs them in a special, walled-off area called an isolated world, so that the page's own JavaScript cannot see or change what the extension is doing. Think of it as a glass partition: the extension and the page look at the same room (the page), but they cannot touch each other's things.
One part of that wall is about network requests. When an extension's content script asks for something over the network, the page should not be able to watch that request or fake the answer. A service worker is a script that a website can install in the browser to sit between the page and the network, like a receptionist who can read and rewrite every message going in and out. If a malicious site's service worker can handle the extension's requests, the wall is broken.
An earlier security fix, CVE-2024-10229, was meant to close exactly this hole for some kinds of requests. This report shows the fix was incomplete. After it, two request types still go through the page's service worker: EventSource and sendBeacon. Two others, fetch() and XHR, now correctly skip it.
The reporter tested this on Chromium 146.0.7680.164 (the Ubuntu snap package, on Ubuntu 24.04 LTS x86_64), with default settings and no flags. The affected code is in Blink, Chromium's rendering engine, at third_party/blink/renderer/modules/eventsource/event_source.cc.
The pieces you need to know
Before the steps, here is the vocabulary the report uses, explained from scratch.
- Extension: a small add-on installed in Chrome that can add features to pages. It is made of files, including a
manifest.jsonthat describes it and scripts that run on pages. - Content script: a script from an extension that Chrome injects into a web page. It runs alongside the page's own scripts.
- Isolated world: a separate JavaScript environment for the content script. It shares the page's visible structure (the DOM, the elements on screen) but not the page's JavaScript objects. The page cannot read the extension's variables, and the extension's variables cannot be reached by the page. The comparison: two people in the same room, each with their own locked notebook.
- Service worker: a script a website registers in the browser. Once active, it can sit between the page and the network and decide what to do with requests for that site's origin. It can answer from a cache, change the response, or pass the request on. The comparison: a receptionist at the door of a building who can read, rewrite or refuse every message.
- Origin: the combination of scheme, host and port, for example
http://localhost:8888. Browsers use it as the basic unit of trust: pages from one origin are not supposed to read data from another. - API: a set of functions a browser offers to scripts.
fetch(),XMLHttpRequest(XHR),EventSourceandsendBeaconare all browser APIs for talking to a server. fetch(): the modern way for JavaScript to ask a server for data and read the reply.- XHR (
XMLHttpRequest): the older way to do the same thing. It is still widely used. EventSource: an API for a long-lived stream of events from a server, called Server-Sent Events (SSE). The connection stays open and the server keeps pushing messages. The comparison: a radio station you tune into and keep listening to.sendBeacon: an API for firing off a small message to a server, typically when a page is closing, without waiting for a reply. The comparison: dropping a postcard in a mailbox and walking away.- CVE: a public identifier for a known security flaw, so people can refer to the same issue consistently. CVE-2024-10229 is the earlier fix this report builds on.
- PoC (proof of concept): a small, self-contained setup that demonstrates the problem, so others can reproduce it.
- DevTools: the developer tools built into Chrome, opened with F12. The Console tab shows messages printed by scripts.
The setup
The proof of concept is split into two folders:
extension/containsmanifest.jsonandcontent.js, the test extension.server/containsserver.py,sw.jsandindex.html, the attacker's page and service worker.
The only requirements are Python 3 and Chromium (or Chrome). No other dependencies.
The extension's content script runs four tests from its isolated world: EventSource, fetch, XHR and sendBeacon. The page registers a service worker that can intercept requests for its origin. The point of the setup is to see which of the four request types the service worker can see or answer.
Finding it
The starting observation is that CVE-2024-10229 fixed service worker interception for some extension content script requests from isolated worlds, but only partially. Based on local testing, fetch() and XHR now bypass the page's service worker. EventSource and sendBeacon still appear to go through it.
That matters because a page-controlled service worker that handles these requests can do two things:
- return attacker-controlled data to an extension's
EventSource - observe the body of an extension's
sendBeacon
Both cross the isolation boundary the earlier fix was meant to protect.
Reproducing it, step by step
Step 1: start the attacker server
Open a terminal in the PoC root folder and start the server:
python3 server/server.py
This runs the Python script server.py with Python 3. You need this running first so that when the browser opens the page, there is something to answer. The comparison: turning on the shop lights before opening the door.
Step 2: launch Chromium with the test extension
Open a second terminal in the same folder and launch Chromium with the extension loaded and the attacker page as the start URL:
chromium --no-first-run --user-data-dir=/tmp/es-test \
--load-extension=extension/ \
http://localhost:8888
Line by line:
chromiumstarts the browser.--no-first-runis passed to Chromium as shown in the command.--user-data-dir=/tmp/es-testsets the profile folder Chromium uses for the run.--load-extension=extension/loads the test extension from theextension/folder. Its content script is what performs the four requests from its isolated world.http://localhost:8888is the URL opened in Chromium.
The backslash at the end of a line is a shell convention meaning "the command continues on the next line". It is only for readability.
Step 3: open the DevTools console
In the browser, press F12 to open DevTools and go to the Console tab. The content script prints its results there. The Console is where scripts can write messages for a human to read, which makes it a convenient place to collect test output.
Step 4: refresh the page once
Refresh the page once. This lets the service worker activate and claim the page. A newly registered service worker is not in charge of the page straight away; a reload gives it the chance to take control. The comparison: the receptionist needs a moment to get to the desk before they can handle the mail.
Step 5: read the results
The content script runs all four tests and prints a results block:
=== RESULTS ===
EventSource: INJECTED_BY_SERVICE_WORKER
fetch: data: REAL_SERVER_DATA
XHR: timeout
sendBeacon: INTERCEPTED by SW (body: {"secret":"EXTENSION_DATA"})
===============
Line by line:
=== RESULTS ===and===============are just visual borders around the block.EventSource: INJECTED_BY_SERVICE_WORKERmeans the service worker answered the extension's event stream with its own data. The service worker returned attacker-controlled data to the extension's event stream.fetch: data: REAL_SERVER_DATAmeans thefetch()request reached the real server, not the service worker. The reply contains the real server's data.XHR: timeoutmeans the XHR test gave up waiting. This is not interception: the SSE stream stays open, so the XHR test times out, but the request went to the real server.sendBeacon: INTERCEPTED by SW (body: {"secret":"EXTENSION_DATA"})means the service worker saw the beacon body sent by the extension. The service worker intercepted the beacon and the body sent by the extension was visible.
So EventSource and sendBeacon are intercepted by the service worker, while fetch and XHR are not.
Why it happens
The reporter reviewed the current Chromium source. In third_party/blink/renderer/modules/eventsource/event_source.cc, the Connect() function does not call SetSkipServiceWorker(true) for isolated worlds. The same is true of SendBeaconCommon() in third_party/blink/renderer/core/loader/ping_loader.cc. By contrast, fetch_manager.cc and xml_http_request.cc do call it, which is why fetch() and XHR bypass the page's service worker after the CVE-2024-10229 fix.
In plain words: SetSkipServiceWorker(true) is an instruction inside the browser's code that says "do not let the page's service worker handle this request". The fetch and XHR code paths call it; the EventSource and beacon paths do not. The EventSource and beacon code paths were not. Those two request types therefore still consult the page's service worker when issued from an extension isolated world.
The comparison: a building installs a rule that certain deliveries must go straight to the back door and skip the receptionist. Two delivery types were left off the list, so they still stop at the receptionist's desk.
Impact
A malicious site with an active service worker can still intercept network requests from an extension content script's isolated world when the script uses EventSource or sendBeacon. This allows attacker-controlled response injection into EventSource and disclosure of sendBeacon payloads across the same isolation boundary that CVE-2024-10229 was meant to protect.
Concretely, if an extension uses EventSource on a page where a malicious service worker controls the origin, the worker can replace the SSE data the extension receives. For sendBeacon, the worker can observe the body the extension sends. The exposure depends on the extension using these APIs from its isolated world on a page whose origin is controlled by an attacker's service worker.
Fix
The report does not describe a fix. Based on the source review in the report, the gap is that Connect() in event_source.cc and SendBeaconCommon() in ping_loader.cc do not call SetSkipServiceWorker(true) for isolated worlds, unlike the fetch and XHR paths. The report does not describe a fix.
Variants to test
- Other request APIs reachable from an extension isolated world: check whether each one sets
SetSkipServiceWorker(true)for isolated worlds. A positive result is a request whose response is produced by the page's service worker rather than the real server, or whose body the worker can read. - The same four tests on other Chromium versions and channels: a positive result is
EventSourceorsendBeaconbeing intercepted wherefetchand XHR are not, which would show the gap persists or has regressed. - Extensions that use
EventSourceagainst origins an attacker can control: a positive result is the extension receiving SSE data that differs from what the real server sent. - Extensions that use
sendBeaconto send sensitive data: a positive result is the service worker observing the beacon body, as in theINTERCEPTED by SWline above.
Glossary
- API: a set of functions a browser or program offers to scripts, so they can ask for things to be done.
- Blink: Chromium's rendering engine, the part that turns web code into what you see and handles requests.
- DevTools: the developer tools built into Chrome, opened with F12; the Console tab shows messages printed by scripts.
- DOM: the structure of elements on a page that scripts can read and change.
- EventSource: a browser API for a long-lived stream of events from a server, called Server-Sent Events (SSE).
- fetch(): the modern browser API for asking a server for data and reading the reply.
- Isolated world: a separate JavaScript environment for an extension's content script that shares the page's DOM but not its JavaScript objects.
- Origin: the combination of scheme, host and port, for example
http://localhost:8888; browsers use it as the basic unit of trust. - PoC (proof of concept): a small, self-contained setup that demonstrates a problem so others can reproduce it.
- sendBeacon: a browser API for firing off a small message to a server without waiting for a reply.
- Service worker: a script a website registers in the browser that can sit between the page and the network and decide what to do with requests for that site's origin.
- SetSkipServiceWorker(true): an instruction inside Chromium's code that tells the browser not to let the page's service worker handle a request.
- SSE (Server-Sent Events): a way for a server to keep pushing messages to a page over one open connection.
- XHR (XMLHttpRequest): the older browser API for asking a server for data and reading the reply.