Skip to content
Access control Advisory Advanced CVE-2026-13824

Insufficient validation of untrusted input in Extensions (CVE-2026-13824)

A logic flaw in Chromium's extension script injection allows a compromised renderer to bypass host permission checks by creating un-navigated subframes, poisoning the ScriptInjectionTracker. This grants the compromised process persistent access to extension APIs and network permissions.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 days

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: A logic flaw in extension script injection allows a compromised renderer to bypass host permission checks by creating un-navigated subframes. This can 'poison' the ScriptInjectionTracker, granting the compromised process persistent access to sensitive extension APIs and network permissions.

Affected files:

  • extensions/browser/script_executor.cc
  • extensions/browser/scripting_utils.cc

Estimated timestamp from git blame: 2026-04-14

Summary

Programmatic script injection in Chromium (via the chrome.scripting API) contains a logic flaw that allows a compromised renderer process to bypass security boundaries. By leveraging subframes with empty committed URLs, an attacker can trick the ScriptInjectionTracker into granting the compromised process the identity and privileges of an active extension. This grant is persistent and allows the process to access extension APIs (e.g., chrome.storage) and use the extension's host permissions for network requests.

Root Cause Analysis

The vulnerability stems from two issues in the extension system's browser-side logic:

  1. Ignored Traversal Signals: In extensions/browser/script_executor.cc, the Handler class iterates through the frame tree to identify injection targets using ForEachRenderFrameHost. This specific overload of the traversal function is designed to ignore return values from its callback. Even when the injection handler identifies a frame that should be denied (and its children skipped), the traversal continues into the frame's descendants.

  2. Empty-URL Permission Bypass: In extensions/browser/scripting_utils.cc, the permission check HasPermissionToInjectIntoFrame contains a bypass for subframes that have not yet committed a navigation (i.e., they are in the 'initial empty document' state). The code assumes that because a URL cannot be verified for such a frame at that layer, the injection should be allowed, with the expectation that the renderer will enforce the check later. However, this browser-side 'allow' signal is used to update the ScriptInjectionTracker.

Potential Attack Scenario

An attacker who has already compromised a renderer process (e.g., via a V8 vulnerability) could potentially follow these steps:

  1. Host a malicious or compromised frame (e.g., https://attacker.com) inside a legitimate page (e.g., https://legitimate-site.com) that has an active extension (Extension G).
  2. Within the compromised renderer, create a nested iframe but do not navigate it. This iframe will have an empty committed URL but will be hosted in the same process as the parent attacker frame.
  3. Wait for Extension G to perform a programmatic script injection with allFrames: true. Extension G has permission for legitimate-site.com but not for attacker.com.
  4. The browser's ScriptExecutor will visit the attacker frame, deny permission, but continue to its nested empty-URL child due to Bug 1.
  5. The browser will then evaluate the empty-URL child and allow the injection due to Bug 2.
  6. The browser calls ScriptInjectionTracker::WillExecuteCode for the empty-URL child, which records that Extension G has run code in the attacker's process. This 'poisons' the tracker, as the process is now authorized to act on behalf of Extension G.

Impact

A compromised renderer process can escalate its privileges to the 'content-script' level for any extension that performs programmatic injection. This grants the attacker:

  • Full access to the extension's data via chrome.storage.local/sync.
  • The ability to use the extension's messaging APIs to communicate with background pages or other contexts.
  • Access to a privileged URLLoaderFactory allowing the process to bypass Cross-Origin Read Blocking (CORB) and perform network requests using the extension's host permissions.

Suggested Fix

  • Update extensions/browser/script_executor.cc to use ForEachRenderFrameHostWithAction instead of ForEachRenderFrameHost. This ensures that iteration control signals (like kSkipChildren) are honored.
  • Modify MaybeAddSubFrame to return kSkipChildren when a frame is denied permission, preventing the traversal of descendants of an unauthorized origin.
  • Tighten the logic in extensions/browser/scripting_utils.cc to ensure that trust is not granted in ScriptInjectionTracker based solely on a frame being in an un-navigated state.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

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

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 combination of ignoring traversal control signals in frame iteration and allowing injection into subframes with empty committed URLs, which incorrectly updates the ScriptInjectionTracker.

Impact

A compromised renderer process could escalate its privileges to the content-script level for any extension that performs programmatic injection, gaining access to extension data, messaging APIs, and network requests with the extension's host permissions.

What the attacker needed

Compromised renderer process; extension performs programmatic injection; attacker controls a frame in a page

The fix

The fix should update the frame traversal to honour skip signals and tighten the permission logic to not trust un-navigated frames.

How it was found

  1. Host a malicious frame inside a legitimate page that has an active extension.
  2. Create a nested iframe without navigating it, so it has an empty committed URL.
  3. Wait for the extension to perform a script injection with allFrames: true.
  4. The browser denies permission for the attacker frame but continues to its nested empty-URL child.
  5. The browser allows injection into the empty-URL child due to the permission bypass.
  6. The ScriptInjectionTracker records that the extension ran code in the attacker's process, poisoning it.

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.

This report describes a bug in how Chrome extensions inject scripts into web pages. Normally, an extension can only run code on sites it has permission for, but a flaw lets a malicious page trick the browser into thinking it has permission, giving it access to the extension's data and network abilities. The attacker must already have control of a browser process, which is a serious step.

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.

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.