Improper resource exposure in Extensions (CVE-2026-106354)
A logic flaw in AppIconFetcherTask causes an icon-update script to be injected into the primary main frame instead of the failed subframe, using the extensions isolated world. An attacker could leak a PWA's installation status and custom icon cross-origin, and corrupt the V8 context for the first extension injecting into the page.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: When a subframe navigation to an installed Web App fails, AppIconFetcherTask incorrectly injects an icon-update script into the primary main frame using ISOLATED_WORLD_ID_EXTENSIONS. This can be exploited to leak the PWA's installation status and custom icon cross-origin, and permanently corrupt the V8 context for the first extension attempting to inject into the page.
Affected files:
chrome/browser/web_applications/web_app_utils.ccchrome/common/chrome_isolated_world_ids.h
Estimated timestamp from git blame: 2023-04-25
Summary
A logic vulnerability exists in AppIconFetcherTask used for generating offline error pages for Web Apps. When a navigation fails, the task fetches the app's icon and injects a script to update the error page. However, the task incorrectly targets the primary main frame (web_contents()->GetPrimaryMainFrame()) instead of the specific subframe where the error occurred, and executes the script using ISOLATED_WORLD_ID_EXTENSIONS.
Potential Exploit Steps
Note: These are suggested steps based on static analysis, as our tooling agent does not run code.
- An attacker creates a page with an
<img id="icon">and an<iframe>pointing to a known PWA or Isolated Web App URL (e.g.,isolated-app://[id]/). - The attacker intentionally delays the main frame's
loadevent (e.g., using a slow-loading subresource) and induces a network error in the iframe (e.g., relying on an offline state or blocked IWA access). - The subframe failure triggers
ConstructWebAppErrorPage(chrome/browser/web_applications/web_app_utils.cc:519), which identifies the PWA based on the subframe's URL and creates anAppIconFetcherTask. - The task fetches the icon asynchronously and waits for the main frame to finish loading (
DocumentOnLoadCompletedInPrimaryMainFrame). - Once the attacker allows the main frame to finish loading, the task executes the script
var icon = document.getElementById('icon'); icon.src =...inside the primary main frame usingISOLATED_WORLD_ID_EXTENSIONS. - The attacker's page observes the
srcchange on their<img id="icon">element, successfully leaking the PWA's custom icon and confirming its installation status cross-origin.
Extension Capability Downgrade (DoS)
Furthermore, because the browser directly injects into ISOLATED_WORLD_ID_EXTENSIONS (ID 5), V8 creates a script context for this world.
ScriptContextSet::Registerattempts to classify this context, but sinceIsolatedWorldManagerhas no mapping for world ID 5 (because an actual extension didn't initiate it), it is classified asmojom::ContextType::kUnspecifiedinstead ofkContentScript.- The context is initialized without the
chrome.*Extension APIs. - When an actual Chrome Extension later attempts to inject a content script into the attacker's page,
IsolatedWorldManagerassigns it the first available ID, which is 5. - V8 reuses the already-created, broken script context. The extension script executes but lacks its required APIs, causing a Denial of Service for that extension on the attacker's page.
Recommended Fix
AppIconFetcherTaskshould store aWeakPtr<content::RenderFrameHost>or use aRenderFrameHostIdto target the exact subframe where the navigation failed, rather than always usingweb_contents()->GetPrimaryMainFrame().- The injection should use
ISOLATED_WORLD_ID_CHROME_INTERNALinstead ofISOLATED_WORLD_ID_EXTENSIONSto prevent overlapping with extension contexts and corrupting their V8 environments.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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
Likely, the task targets the primary main frame instead of the specific subframe where the navigation failed, and uses the extensions isolated world ID, causing cross-origin script injection and V8 context corruption.
Impact
An attacker could leak the PWA's installation status and custom icon cross-origin, and cause a denial of service for the first extension that injects into the page.
What the attacker needed
Victim visits attacker's page; attacker can induce network error in iframe; attacker can delay main frame load
The fix
The task should target the exact subframe using a WeakPtr or RenderFrameHostId, and use ISOLATED_WORLD_ID_CHROME_INTERNAL instead of ISOLATED_WORLD_ID_EXTENSIONS.
How it was found
- Create a page with an image element and an iframe pointing to a known PWA or Isolated Web App URL.
- Delay the main frame's load event and induce a network error in the iframe.
- The subframe failure triggers ConstructWebAppErrorPage, which creates an AppIconFetcherTask.
- The task fetches the icon and waits for the main frame to finish loading.
- The task injects a script into the primary main frame using ISOLATED_WORLD_ID_EXTENSIONS.
- The attacker's page observes the image src change, leaking the PWA's icon and installation status.
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.
When a web app fails to load, the browser tries to show a custom error page with the app's icon. A mistake makes it run a small script on the wrong page, which can reveal whether the app is installed and what its icon looks like. It can also break other extensions on that page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.