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.ccthird_party/blink/renderer/core/dom/node.ccthird_party/blink/renderer/core/dom/container_node.ccthird_party/blink/renderer/core/dom/document.ccthird_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)
- Setup established context:
<fieldset disabled id="fs"><legend id="L1"><input id="victim"></legend><legend id="L2"></legend></fieldset>alongside a target<iframe>. - Standard processing applied: focus the
victiminput and attach a maliciousblurevent listener designed to calltarget.remove()ordocument.body.appendChild(target). - Trigger the move: execute
fs.moveBefore(L1, null). - Vulnerability triggered: The synchronous
blurevent 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.
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
- Create a disabled fieldset containing two legends, one with a focused input, plus a target iframe.
- Attach a blur event listener to the input that removes or re-appends the target iframe.
- Call moveBefore on the fieldset to move the first legend.
- 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.