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

Information leak in Animation (CVE-2026-106277)

A potential history disclosure vulnerability in Blink's CSS animation implementation allows websites to synchronously detect whether a user has visited a specific URL. By animating SVG color properties inside an anchor element using currentColor, the resolved :visited style can overwrite the shared unvisited style slot in ComputedStyle, enabling read-back via getComputedStyle().

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 potential history disclosure vulnerability exists in Blink's CSS animation implementation, allowing websites to synchronously detect whether a user has visited a specific URL. By animating SVG color properties inside an anchor element using currentColor, the resolved :visited style can overwrite the shared unvisited style slot in ComputedStyle. As a result, the user's actual visited state can be synchronously read back via getComputedStyle(), bypassing standard :visited privacy restrictions.

Affected files:

  • third_party/blink/renderer/core/animation/color_property_functions.cc
  • third_party/blink/renderer/core/animation/css_color_interpolation_type.cc
  • third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc

Estimated timestamp from git blame: 2026-02-23

Potential History Leak via SVG Color Animations

A potential history disclosure vulnerability has been identified in Blink's styling and animation engine. The flaw allows an untrusted webpage to synchronously determine whether a user has visited a specific URL by setting up a CSS keyframe animation or transition with SVG-specific color properties (flood-color, lighting-color, or stop-color) resolving currentColor inside a link.

Note: These steps and analysis are potential and suggested, based on meticulous static code tracing, as our tooling does not have the capability to run dynamic proof-of-concept exploits.


Root Cause Analysis

1. Lack of Dedicated :visited Slots

In third_party/blink/renderer/core/animation/color_property_functions.cc, the helper function ColorPropertyFunctions::SetVisitedColor handles setting colors for CSS properties under :visited states. For kFloodColor, kLightingColor, and kStopColor, it writes to the exact same ComputedStyleBuilder field as SetUnvisitedColor because no dedicated -internal-visited slots exist for these SVG properties:

C++
case CSSPropertyID::kFloodColor:    builder.SetFloodColor(style_color);    return;
case CSSPropertyID::kLightingColor: builder.SetLightingColor(style_color); return;
case CSSPropertyID::kStopColor:     builder.SetStopColor(style_color);     return;

2. Overwrite via Sequential Application

In CSSColorInterpolationType::ApplyStandardPropertyValue (third_party/blink/renderer/core/animation/css_color_interpolation_type.cc), the visited-resolved interpolated color is applied after the unvisited one:

C++
void CSSColorInterpolationType::ApplyStandardPropertyValue(...) const {
  ...
  ColorPropertyFunctions::SetUnvisitedColor(...);
  ColorPropertyFunctions::SetVisitedColor(
      CssProperty(), state.StyleBuilder(),
      ResolveInterpolableColor(*color_pair.Get(kVisited),   state, true,  ...));  // Overwrites the slot!
}

Since SetVisitedColor runs second, it overwrites the shared ComputedStyle field with the visited-resolved value.

3. Visited-State Dependent Resolution

When a child element inside a link specifies an explicit color: inherit, the rule is expanded to -internal-visited-color: inherit during cascade expansion. This routes through InternalVisitedColor::ApplyInherit in third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc:

C++
void InternalVisitedColor::ApplyInherit(StyleResolverState& state) const {
  ...
  const StyleColor& inherited_color =
      (state.ParentStyle()->InsideLink() == EInsideLink::kInsideVisitedLink)
          ? state.ParentStyle()->InternalVisitedColor()   // visited -> :visited color
          : state.ParentStyle()->Color();                 // unvisited -> :link color
  builder.SetInternalVisitedColor(inherited_color);
}

Since ParentStyle()->InsideLink() reflects the actual visited state of the link, the child element's InternalVisitedColor() becomes conditionally set to the visited or unvisited color of the parent.

4. Read-back with No Sanitization

When a script queries getComputedStyle() for flood-color, lighting-color, or stop-color, the internal read-back functions (e.g., FloodColor::CSSValueFromComputedStyleInternal in longhands_custom.cc) retrieve the style directly from the shared field:

C++
const CSSValue* FloodColor::CSSValueFromComputedStyleInternal(
    const ComputedStyle& style, ..., bool allow_visited_style, ...) const {
  return ComputedStyleUtils::CurrentColorOrValidColor(style, style.FloodColor(), value_phase);
}

Because allow_visited_style is ignored (as this field is designed to hold only the unvisited value), the color is returned directly, leaking the actual visited state of the link directly to the page.


Potential Steps to Trigger the Issue

An attacker could potentially exploit this behavior via the following sequence:

  1. Define a link element <a> pointing to a target URL (e.g., https://victim.example/).

  2. Style visited and unvisited links with distinct colors:

    CSS
    a:link    { color: rgb(0, 255, 0); } /* green */
    a:visited { color: rgb(255, 0, 0); } /* red */
    
  3. Place an SVG filter element inside the anchor with color inheritance enabled:

    HTML
    <a href="https://victim.example/">
      <svg><feFlood id="probe" style="color: inherit; animation: k 1s paused;"></feFlood></svg>
    </a>
    
  4. Bind an animation to the SVG element that maps flood-color to currentColor:

    CSS
    @keyframes k {
      from, to { flood-color: currentColor; }
    }
    
  5. Force a synchronous style update and query the resolved style in JavaScript:

    JavaScript
    const probe = document.getElementById('probe');
    const floodColor = getComputedStyle(probe).floodColor;
    if (floodColor === 'rgb(255, 0, 0)') {
      console.log('Result: VISITED');
    } else {
      console.log('Result: NOT VISITED');
    }
    

Suggested Fix

To prevent the :visited state from overwriting the default non-visited style slots, ColorPropertyFunctions::SetVisitedColor in third_party/blink/renderer/core/animation/color_property_functions.cc should return early without modifying style fields for properties that do not support independent :visited styling.

Specifically, kFloodColor, kLightingColor, and kStopColor should be treated similarly to kAccentColor:

C++
    case CSSPropertyID::kFloodColor:
    case CSSPropertyID::kLightingColor:
    case CSSPropertyID::kStopColor:
      // These properties are not valid for :visited styling and do not have separate visited fields.
      return;

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 SVG color properties flood-color, lighting-color, and stop-color lack dedicated :visited style slots, so when a visited style is applied via animation it overwrites the shared unvisited style field, and the read-back function ignores the allow_visited_style flag.

Impact

A malicious website could synchronously determine whether a user has visited a specific URL, bypassing standard :visited privacy restrictions.

What the attacker needed

Victim visits a crafted webpage; browser is Chromium-based

The fix

The fix should make SetVisitedColor return early without modifying style fields for properties that do not support independent :visited styling, such as kFloodColor, kLightingColor, and kStopColor.

How it was found

  1. Define a link element pointing to a target URL.
  2. Style visited and unvisited links with distinct colors.
  3. Place an SVG filter element inside the anchor with color inheritance enabled.
  4. Bind an animation to the SVG element that maps flood-color to currentColor.
  5. Force a synchronous style update and query the resolved style in JavaScript.

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.

Websites can normally tell if you have visited a link only in limited ways, and browsers try to hide your browsing history. This report describes a possible bug where a website could use a CSS animation on an SVG element inside a link to find out if you have visited a specific page. The bug is in how the browser stores the colour of that SVG element when the link is visited, and it could let a script read that colour and learn your history.

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.