Skip to content
XSS Advisory Advanced CVE-2026-11036

Inappropriate implementation in DOM (CVE-2026-11036)

A browser engine bug lets attacker JavaScript run during an atomic DOM move because a synchronous blur event fires while the move flag is still set. This can leave an iframe in a 'zombie' state where the renderer and browser process disagree, potentially leading to sandbox escape or universal XSS.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential frame tree desynchronization vulnerability exists due to HTMLFieldSetElement::ChildrenChanged dispatching synchronous blur events while the StatePreservingAtomicMoveInProgress flag is active. This allows attacker-controlled JavaScript to execute during an atomic move, bypassing iframe lifecycle disconnections and security checks.

Affected files:

  • third_party/blink/renderer/core/html/forms/html_field_set_element.cc
  • third_party/blink/renderer/core/dom/node.cc
  • third_party/blink/renderer/core/dom/container_node.cc
  • third_party/blink/renderer/core/dom/document.cc
  • third_party/blink/renderer/core/html/html_frame_element_base.cc

Estimated timestamp from git blame: 2025-01-17

Core Vulnerability: A bypass of the StatePreservingAtomicMoveInProgress invariant permits attacker JavaScript execution during Node::moveBefore(), leading directly to frame tree desynchronization and potential Sandbox Escape / UXSS.

Technical Details

Initial logic and parameters surrounding Node::moveBefore(), the StatePreservingAtomicMoveInProgress flag assertion, and subsequent ContainerNode::AppendChild DOM tree manipulations are validated.

Standard processing applies during the mutation phases, culminating in the invocation of HTMLFieldSetElement::ChildrenChanged when a <legend> is moved within a disabled <fieldset>.

At this juncture, the logic determines the previously focused element inside the moved <legend> has become disabled. The EventDispatchForbiddenScope is explicitly closed. Control jumps directly to focused_element->blur(). Because Element::blur() lacks awareness of the atomic move state, it synchronously dispatches blur and focusout events to author JavaScript while GetDocument().StatePreservingAtomicMoveInProgress() remains true.

From within this event handler, an attacker can detach or re-insert arbitrary iframe elements. The active flag causes ContainerNode::WillRemoveChild to skip ChildFrameDisconnector, and HTMLFrameElementBase::InsertedInto to bypass SECURITY_CHECK(!ContentFrame() || GetDocument().StatePreservingAtomicMoveInProgress()). This results in a "zombie" iframe where the renderer detaches the element without notifying the browser's RenderFrameHost.

Potential Attacker Steps (Unverified)

  1. Setup established context: <fieldset disabled id="fs"><legend id="L1"><input id="victim"></legend><legend id="L2"></legend></fieldset> alongside a target <iframe>.
  2. Standard processing applied: focus the victim input and attach a malicious blur event listener designed to call target.remove() or document.body.appendChild(target).
  3. Trigger the move: execute fs.moveBefore(L1, null).
  4. Vulnerability triggered: The synchronous blur event executes the payload while the atomic move flag is active, corrupting the iframe lifecycle state.

Suggested Fix

Instantiate a ScriptForbiddenScope directly within Node::moveBefore() to strictly enforce the invariant, or explicitly defer focus/blur updates in HTMLFieldSetElement::ChildrenChanged if StatePreservingAtomicMoveInProgress is active.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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.

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 blur event dispatched by HTMLFieldSetElement::ChildrenChanged runs synchronously without checking the StatePreservingAtomicMoveInProgress flag, so author script executes during an atomic move and bypasses iframe lifecycle checks.

Impact

This could lead to frame tree desynchronization and potentially sandbox escape or universal XSS, though the report labels the attacker steps as unverified.

What the attacker needed

Victim visits a malicious page; browser supports moveBefore(); attacker controls page JavaScript

The fix

The report suggests enforcing a ScriptForbiddenScope inside Node::moveBefore() or deferring focus/blur updates when the atomic move flag is active; it does not say the issue was fixed.

How it was found

  1. Create a disabled fieldset containing two legends, one with a focused input, plus a target iframe.
  2. Attach a blur event listener to the input that removes or re-appends the target iframe.
  3. Call moveBefore on the fieldset to move the first legend.
  4. The synchronous blur event runs the listener while the atomic move flag is still set, corrupting the iframe lifecycle.

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.

Web pages are built from a tree of elements, and browsers sometimes move a piece of that tree in one atomic step so nothing can interfere. Here, moving a legend inside a disabled fieldset caused the browser to fire a blur event (meaning 'this input lost focus') straight away, while the browser still thought the atomic move was happening. A malicious page could use that moment to remove or re-add an iframe, leaving the browser's internal bookkeeping out of sync.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.