Skip to content
Info disclosure Advisory Advanced CVE-2026-2317

Inappropriate implementation in Animation (CVE-2026-2317)

Cloning a KeyframeEffect that targets a pseudo-element makes the clone's target the internal shadow-tree element rather than the originating element. This lets script reach and observe internal elements such as an input's placeholder, disclosing a saved address when the user hovers a suggestion.

Brendan Draper Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 2 months

Security Bug

Important: Please do not change the component of this bug manually.

Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md

Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs

Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp

NOTE: Security bugs are normally made public once a fix has been widely deployed.


VULNERABILITY DETAILS

When a Keyframe is constructed with the pseudoElement option, animations are applied to the corresponding pseudo-element, but the target property still refers to the originating element:

effect = new KeyframeEffect(element, [], {pseudoElement: "::placeholder"});
effect.target == inputElement;

But when cloning from another KeframeEffect, the element the animations are applied to is used as the target too:

effect = new KeyframeEffect(effect);
effect.target != inputElement;
```.

This element may be a pseudo element or a "styled" pseudo element residing in a target element's shadow tree. The placeholder attribute rendered within an <input> element's shadow tree is a an example of an element that can be animated but should not be accessible.

Attached example observers and logs changes to an input's ::placeholder pseudo element. If the user has an saved address in chrome, hovering over the suggested address will disclose it without confirmation.

Many other internal elements may be accessed this way. They can be identified in blink source by use of the `Element::SetShadowPseudoId` method.

VERSION
Chrome Version: Version 144.0.7533.0 (Developer Build) (64-bit)
Operating System: Linux

REPRODUCTION CASE
Visit chrome://settings/addresses and add an address with at least a street address
Open poc.html in chrome served from an HTTP server.
Click on or tab to the input under the Address header.
Hover over suggested address or press down arrow.
Observe the street address is printed to the output.


CREDIT INFORMATION
Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited?
Reporter credit: Brendan Draper

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Chrome's Web Animations API lets script build a KeyframeEffect and attach it to an element. A KeyframeEffect has a target, the element the animation applies to. The API also accepts a pseudoElement option, which redirects the animation onto a pseudo-element of that target, for example ::placeholder on an <input>.

Some of those pseudo-elements are not authored by the page at all. They live inside the browser's own shadow trees, such as the placeholder text rendered inside an <input>'s user-agent shadow tree. The report treats these as internal elements that can be animated but should not be reachable from page script.

Setup

The researcher used a Developer Build of Chrome:

Text
Chrome Version: Version 144.0.7533.0 (Developer Build) (64-bit)
Operating System: Linux

The proof of concept is a file called poc.html, served from an HTTP server. It needs one precondition in the browser profile: a saved address in Chrome, created through chrome://settings/addresses, containing at least a street address. The page itself only needs an <input> under an "Address" header, which is what the autofill suggestion list attaches to.

Finding it

The starting point is a discrepancy in how KeyframeEffect handles the pseudoElement option. When an effect is constructed directly with that option, the animation is applied to the pseudo-element, but the target property still points at the originating element:

JavaScript
effect = new KeyframeEffect(element, [], {pseudoElement: "::placeholder"});
effect.target == inputElement;

That is the expected behaviour: the target is the element the page owns, and the pseudo-element is only where the animation is painted.

Cloning an existing effect behaves differently. The constructor that takes another KeyframeEffect copies the element the animation is actually applied to, rather than the original target:

JavaScript
effect = new KeyframeEffect(effect);
effect.target != inputElement;

So after a clone, target is no longer the <input>. It is the element inside the shadow tree that the animation was redirected to. That element can be a pseudo-element, or a "styled" pseudo-element residing in a target element's shadow tree. The placeholder rendered inside an <input>'s shadow tree is the example given: an element that can be animated but should not be accessible to script.

The researcher notes that many other internal elements can be reached the same way, and that they can be identified in the Blink source by use of the Element::SetShadowPseudoId method.

Exploitation

Step 1: seed a saved address

Visit chrome://settings/addresses and add an address with at least a street address. This gives the browser something to suggest later, and the suggestion is rendered inside the input's shadow tree.

Step 2: serve and open the proof of concept

Open poc.html in Chrome, served from an HTTP server. The page observes the input's ::placeholder pseudo-element and logs changes to it. The attached example observes and logs changes to the placeholder.

Step 3: trigger the autofill suggestion

Click on or tab to the input under the Address header. Then hover over the suggested address, or press the down arrow to move through the suggestions.

Step 4: read the output

The street address is printed to the output, disclosed without confirmation from the user.

Root cause

The KeyframeEffect constructor that clones another effect copies the wrong element into target. For a directly constructed effect, target is the originating element and the pseudo-element is kept separately. For a clone, the element the animation is applied to, which may be a pseudo-element or a styled pseudo-element inside a shadow tree, becomes the target. That hands page script a reference to an internal element it should never hold.

Once script has that reference, it can observe it.

Impact

An attacker-controlled page can observe changes to internal elements of the browser's own UI rendered inside form controls. The concrete case in the report is the autofill suggestion for a saved address: hovering over the suggestion, or moving through the list with the down arrow, discloses the saved street address to the page without confirmation. The report states that many other internal elements reachable through Element::SetShadowPseudoId may be accessed this way, so the placeholder is an example rather than the full extent.

The disclosure requires the user to have a saved address in Chrome and to interact with the suggestion list on a page the attacker controls. The report does not describe any other data being read.

Fix

The report does not describe the fix that was applied.

Variants to test

  1. Clone effects built with other pseudoElement values, such as ::placeholder on other form controls, and check whether target after cloning differs from the originating element. A positive result is a target that is not the element passed to the original constructor.
  2. Enumerate internal elements by searching Blink for Element::SetShadowPseudoId and try to reach each one through the same clone path. A positive result is a target that resolves to an element inside a user-agent shadow tree.
  3. Attach a MutationObserver to any element obtained this way and interact with the corresponding browser UI, for example autofill suggestions. A positive result is page-visible text that the user did not type and did not confirm sharing.
  4. Try the same clone pattern with other Web Animations entry points that accept an existing effect, and compare the resulting target with the direct-construction case.

Hunting notes

This class of bug hides where a browser API accepts an option that redirects an operation onto an internal element, and a second code path copies state from the first without preserving the same separation. The signal is an asymmetry: the same logical object exposes different properties depending on how it was constructed. Comparing direct construction with cloning, copying or serialising is a cheap way to find it.

The reporter credit is Brendan Draper.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Chrome has a feature that lets a web page animate parts of the page: make things move, fade, change colour and so on. This feature is called the Web Animations API. An API is simply a set of commands that a web page can use to talk to the browser, a bit like a menu of actions a shop assistant will perform for you.

One of the things this API can animate is a pseudo-element. A pseudo-element is a piece of a page that the browser draws for you but that you did not write yourself. The classic example is the grey placeholder text inside an empty text box, the hint that says what to type. In Chrome, that placeholder is not really part of the web page. It lives inside a private, hidden area that the browser builds for itself, called a shadow tree. Think of it as the inside of a shop counter: customers can see the counter and use it, but they are not supposed to reach behind it.

The bug in this report is that a web page could get hold of a reference to one of those hidden internal elements, the placeholder inside a text box, and then watch it. Once a page can watch an element, it can read the text that the browser writes into it. In the demonstration, the saved street address is disclosed when the user hovers over or arrows through the suggestion list.

The reporter credit is Brendan Draper.

Context

What the Web Animations API does

Web pages are built from elements: a text box is an element, a button is an element, a paragraph is an element. The Web Animations API lets a page's JavaScript (the programming language browsers run) create an animation and attach it to an element.

The object that describes the animation is called a KeyframeEffect. You can think of it as a recipe card: it says what should change and when. The recipe card has a target property, which is the element the animation applies to, the dish the recipe is for.

The API also accepts an option called pseudoElement. This lets the page say: do not animate the element itself, animate one of its pseudo-elements instead. For example, ::placeholder means the grey hint text inside a text box.

The hidden parts

Some of those pseudo-elements are not written by the page at all. They live inside the browser's own shadow trees. The placeholder text inside an <input> (a text box) is drawn by Chrome itself, in a shadow tree that belongs to the browser, not to the page. The report treats these as internal elements: things that can be animated, but that page script should never be able to reach.

Setup

The researcher used a special build of Chrome made for developers, on Linux:

Text
Chrome Version: Version 144.0.7533.0 (Developer Build) (64-bit)
Operating System: Linux

Line by line:

  • Chrome Version: Version 144.0.7533.0 (Developer Build) (64-bit) records the exact browser build used. A Developer Build is a version of Chrome intended for people working on or testing the browser, not the normal release. The version number identifies precisely which code was running, so the bug can be reproduced.
  • Operating System: Linux records the operating system. Bugs can behave differently on different systems, so this is part of a complete report.

The proof of concept, the demonstration page that shows the bug, is a file called poc.html. It is served from an HTTP server, meaning it is opened through a small local web server rather than by double-clicking the file.

There is one precondition in the browser profile: a saved address in Chrome, created through chrome://settings/addresses, containing at least a street address. chrome://settings/addresses is one of Chrome's own internal settings pages, where you manage saved addresses for autofill. The page under test only needs an <input> under an "Address" header, because that is what the autofill suggestion list attaches to.

Finding it

The starting point is an inconsistency in how KeyframeEffect handles the pseudoElement option. When an effect is created directly with that option, the animation is applied to the pseudo-element, but the target property still points at the original element:

JavaScript
effect = new KeyframeEffect(element, [], {pseudoElement: "::placeholder"});
effect.target == inputElement;

Line by line:

  • effect = new KeyframeEffect(element, [], {pseudoElement: "::placeholder"}); creates a new animation recipe. new KeyframeEffect(...) builds the object. element is the element the page owns. [] is an empty list of keyframes, meaning no actual visual changes are described; the animation is a shell used to reach the pseudo-element. The third argument is an options object, and pseudoElement: "::placeholder" says: apply this to the placeholder inside the element rather than to the element itself.
  • effect.target == inputElement; checks what the recipe's target is. The result is true: the target is still the text box the page created. This is the expected behaviour. The target is the element the page owns, and the pseudo-element is only where the animation is painted, like a poster on a wall you own: the wall is still yours, the poster is just decoration on it.

Cloning an existing effect behaves differently. There is a constructor that takes another KeyframeEffect and copies it. That copy takes the element the animation is actually applied to, rather than the original target:

JavaScript
effect = new KeyframeEffect(effect);
effect.target != inputElement;

Line by line:

  • effect = new KeyframeEffect(effect); creates a new effect by copying an existing one. This is the clone path: instead of describing an animation from scratch, you hand the constructor an existing recipe and ask for a duplicate.
  • effect.target != inputElement; checks the target of the clone. The result is true: the target is no longer the text box. After cloning, target is the element inside the shadow tree that the animation was redirected to.

That element can be a pseudo-element, or a "styled" pseudo-element living in a target element's shadow tree. The placeholder rendered inside an <input>'s shadow tree is the example given: an element that can be animated but should not be accessible to script.

The researcher notes that many other internal elements can be reached the same way, and that they can be identified in the Blink source by use of the Element::SetShadowPseudoId method. Blink is the part of Chrome that renders web pages. Element::SetShadowPseudoId is an internal function that marks an element as one of these browser-drawn pseudo-elements, so searching the source for it gives a list of candidates to try.

Exploitation

Exploitation means turning a bug into a concrete, harmful outcome. Here it is done in four steps.

Step 1: seed a saved address

Visit chrome://settings/addresses and add an address with at least a street address. This gives the browser something to suggest later, and the suggestion is rendered inside the input's shadow tree. Without a saved address there is nothing for Chrome to offer, so there would be nothing to leak.

Step 2: serve and open the proof of concept

Open poc.html in Chrome, served from an HTTP server. The page observes the input's ::placeholder pseudo-element and logs changes to it. The page then observes that element and logs changes to it. Observing means registering a watcher, a piece of code that is told whenever the element changes, so the page does not have to guess: the browser tells it.

Step 3: trigger the autofill suggestion

Click on or tab to the input under the Address header. Then hover over the suggested address, or press the down arrow to move through the suggestions. This is ordinary user behaviour, the kind of thing anyone does when filling in a form.

Step 4: read the output

The street address is printed to the output, disclosed without confirmation from the user. The user never clicked "share my address"; the page simply read what the browser put there.

Root cause

The KeyframeEffect constructor that clones another effect copies the wrong element into target. For a directly created effect, target is the original element and the pseudo-element is kept separately. For a clone, the element the animation is applied to, which may be a pseudo-element or a styled pseudo-element inside a shadow tree, becomes the target. That hands page script a reference to an internal element it should never hold.

Once script has that reference, it can observe it.

Impact

An attacker-controlled page can observe changes to internal elements of the browser's own interface rendered inside form controls. The concrete case in the report is the autofill suggestion for a saved address: hovering over the suggestion, or moving through the list with the down arrow, discloses the saved street address to the page without confirmation. The report states that many other internal elements reachable through Element::SetShadowPseudoId may be accessed this way, so the placeholder is an example rather than the full extent.

The disclosure requires the user to have a saved address in Chrome and to interact with the suggestion list on a page the attacker controls. The report does not describe any other data being read.

Fix

The report does not describe the fix that was applied.

Variants to test

A variant is a nearby version of the same bug, tried to see how far it reaches.

  1. Clone effects built with other pseudoElement values, such as ::placeholder on other form controls, and check whether target after cloning differs from the original element. A positive result is a target that is not the element passed to the original constructor.
  2. Enumerate internal elements by searching Blink for Element::SetShadowPseudoId and try to reach each one through the same clone path. A positive result is a target that resolves to an element inside a browser-owned shadow tree.
  3. Attach a MutationObserver to any element obtained this way and interact with the corresponding browser interface, for example autofill suggestions. A MutationObserver is the watcher mentioned earlier: a standard browser tool that reports changes to an element. A positive result is page-visible text that the user did not type and did not confirm sharing.
  4. Try the same clone pattern with other Web Animations entry points that accept an existing effect, and compare the resulting target with the direct-construction case.

Hunting notes

This class of bug hides where a browser API accepts an option that redirects an operation onto an internal element, and a second code path copies state from the first without preserving the same separation. The signal is an asymmetry: the same logical object exposes different properties depending on how it was constructed. Comparing direct construction with cloning, copying or serialising is a cheap way to find it. Serialising means turning an object into a storable or transferable form, such as text.

The reporter credit is Brendan Draper.

Glossary

  • API: a set of commands a program offers to other programs, like a menu of actions you can ask for.
  • Autofill: a browser feature that fills in forms for you using saved information such as addresses.
  • Blink: the part of Chrome that renders web pages.
  • Chrome VRP: Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.
  • Clone: a copy of an existing object, made by handing it to a constructor.
  • Constructor: the code that builds a new object, such as new KeyframeEffect(...).
  • Developer Build: a version of Chrome made for people working on or testing the browser, not the normal release.
  • Disclosure: making the details of a fixed security bug public.
  • Element: a single piece of a web page, such as a text box, button or paragraph.
  • Exploitation: turning a bug into a concrete harmful outcome.
  • HTTP server: a program that serves web pages to a browser over the network, including a small one running on your own machine.
  • Impact: the real-world harm a bug can cause.
  • JavaScript: the programming language that runs inside web pages.
  • KeyframeEffect: the Web Animations API object that describes an animation and holds its target.
  • Medium severity: a rating between low and high, used by the program to describe how serious the bug is.
  • MutationObserver: a standard browser tool that watches an element and reports changes to it.
  • Precondition: something that must already be true before a bug can be triggered.
  • Proof of concept: a demonstration page or program that shows a bug actually happening.
  • Pseudo-element: a part of a page drawn by the browser but not written by the page, such as the placeholder text inside a text box.
  • Reference: a handle in code that points at a specific object, letting the code read or watch it.
  • Root cause: the underlying coding mistake that produces the bug.
  • Serialising: turning an object into a storable or transferable form, such as text.
  • Shadow tree: a private, hidden structure of elements that a browser or a page component builds for itself, kept separate from the page's own elements.
  • Target: the element an animation applies to, held in the target property of a KeyframeEffect.
  • User-agent shadow tree: a shadow tree built by the browser itself, rather than by the page.
  • Variant: a nearby version of the same bug, tried to see how far it reaches.
  • Web Animations API: the browser feature that lets page script create and control animations.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.