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

Policy bypass in SVG (CVE-2026-11180)

A logic error in SVG SMIL animations causes the currentColor keyword to be resolved using visited-dependent styles, and the resulting absolute colour is then applied to the unvisited style slot. This lets JavaScript read the user's cross-origin browsing history via getComputedStyle().

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 50 days

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 without the Chrome Security team.

Overview: A logic error in SVG SMIL animations eagerly resolves the currentColor keyword using visited-dependent styles. This resolved absolute color is then applied to the CSS cascade, overriding the element's unvisited style slot with the visited color. This allows JavaScript to deterministically read the user's cross-origin browsing history via getComputedStyle().

Affected files:

  • third_party/blink/renderer/core/svg/svg_animated_color.cc
  • third_party/blink/renderer/core/svg/svg_animate_element.cc
  • third_party/blink/renderer/core/css/resolver/style_resolver.cc
  • third_party/blink/renderer/core/css/element_rule_collector.cc
  • third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc

Estimated timestamp from git blame: 2025-10-21

Description

A potential vulnerability exists in the handling of SVG SMIL animations for color properties, leading to a deterministic cross-origin history leak. This allows an attacker to bypass the dual-style mitigation for :visited links and read whether a specific URL is in the user's history.

When a SMIL animation (e.g., <animate>) targets a color attribute using currentColor inside a visited link, the following sequence occurs:

  1. Eager Resolution: During animation processing, SVGColorProperty::CalculateAnimatedValue calculates the frame's color. To handle currentColor, it calls FallbackColorForCurrentColor, which queries the element's ComputedStyle via VisitedDependentColor. Because the element is inside a visited link, this returns the absolute visited color.
  2. Semantic Loss: The animation engine converts this absolute color back to a StyleColor, permanently losing the currentColor keyword semantic. The animation result is then serialized to an absolute RGB string (e.g., "rgb(255, 255, 255)").
  3. Cascade Laundering: SVGAnimateElement::ApplyResultsToTarget applies this absolute string as a SMIL style property. During style resolution, StyleResolver adds these properties to the cascade. Because the element is inside a link, the match type is set to CSSSelector::kMatchAll.
  4. Slot Override: In StyleCascade::CollectFromMatchResult, kMatchAll causes the property to be expanded into both its unvisited and visited (-internal-visited-*) slots. Consequently, the unvisited style slot is overwritten with the absolute visited color.
  5. Information Leak: When JavaScript calls getComputedStyle().fill, which is designed to only return the unvisited style, it returns the absolute visited color, successfully leaking the history state.

Impact

This provides a deterministic, zero-interaction readback of a user's cross-origin browsing history. While PartitionVisitedLinkDatabase mitigates the impact on standard Chrome (partitioning history by top-level site), the vulnerability exposes unpartitioned cross-origin history on Android WebView, where link partitioning is explicitly disabled.

Potential Reproduction Steps

(Note: These are suggested steps based on code analysis; our tooling agent cannot execute code to verify.)

  1. Serve a page containing the following structure:

    HTML
    <style>
      a:link { color: #000; }
      a:visited { color: #fff; }
    </style>
    <a href='https://target.example/'>
      <svg>
        <rect id='target' width='10' height='10'>
          <animate attributeName='fill' from='currentColor' to='currentColor' begin='0s' dur='1s' fill='freeze'/>
        </rect>
      </svg>
    </a>
    
  2. Wait for the animation to apply (e.g., using requestAnimationFrame twice).

  3. Read the computed style of the rectangle: const color = getComputedStyle(document.getElementById('target')).fill;

  4. If the URL https://target.example/ has been visited, color will be 'rgb(255, 255, 255)'. Otherwise, it will be 'rgb(0, 0, 0)'.

Suggested Fix

The root cause is the eager resolution of currentColor during the SMIL animation phase, which drops the keyword semantic and locks in the visited color.

To fix this, SMIL animations should ideally preserve the currentColor keyword (or UnresolvedColorFunction semantics) throughout the animation calculation and serialization phases, delaying resolution until the final ComputedStyle is built. Alternatively, if eager resolution is required for interpolation, the engine must track whether the resulting color was influenced by a visited state and ensure that the serialized SMIL property is applied exclusively to the visited style slot, rather than broadcasting it to the unvisited slot via kMatchAll.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results 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.

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 SMIL animation engine eagerly resolves the currentColor keyword using visited-dependent styles and then applies the resulting absolute colour to both the visited and unvisited style slots, losing the keyword semantics.

Impact

This provides a deterministic, zero-interaction readback of a user's cross-origin browsing history; while PartitionVisitedLinkDatabase mitigates the impact on standard Chrome, the vulnerability exposes unpartitioned cross-origin history on Android WebView.

What the attacker needed

Victim visits a malicious page; target URL must be in history; Android WebView for unpartitioned history

The fix

SMIL animations should preserve the currentColor keyword throughout calculation and serialisation, delaying resolution until the final ComputedStyle is built, or track visited influence and apply the serialised property only to the visited style slot.

How it was found

  1. Serve a page with a visited link containing an SVG rectangle whose fill is animated from currentColor to currentColor.
  2. Wait for the animation to apply, for example using requestAnimationFrame twice.
  3. Read the computed fill style of the rectangle with getComputedStyle().
  4. Compare the returned colour to determine whether the target URL is in the user's history.

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.

When you visit a link, browsers normally hide that fact from websites by giving visited links a different colour that scripts cannot read. This report found a way to make a browser reveal that colour through an SVG animation, so a malicious page could tell whether you had visited a particular site.

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.