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

Observable discrepancy in Paint (CVE-2026-106336)

A timing side-channel in Blink's wavy text decoration rendering lets an attacker infer whether a cross-origin URL has been visited. The shared single-entry cache thrashes when links with identical geometry but alternating colours are painted, causing measurable frame delays.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Flapjack, 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 timing side-channel exists in the rendering of wavy text decorations, allowing an attacker to determine if a cross-origin URL has been visited. This is caused by a shared, single-entry cache that thrashes when interleaved links with identical geometry but alternating colors are painted, resulting in measurable frame rendering delays.

Affected files:

  • third_party/blink/renderer/core/paint/decoration_line_painter.cc

Estimated timestamp from git blame: 2025-06-25

Description

A potential timing side-channel vulnerability exists in Blink's rendering path for wavy text decorations (text-decoration-style: wavy). This allows an attacker to bypass standard :visited history protections and leak whether a user has visited a specific cross-origin URL.

The issue stems from the caching implementation in third_party/blink/renderer/core/paint/decoration_line_painter.cc:

  1. Shared Static Cache: The function GetWavyGeometry utilizes a DEFINE_STATIC_LOCAL single-entry cache (wavy_cache) keyed by WavyParams. WavyParams includes geometry data but excludes the decoration color. Consequently, all elements in the renderer process with identical wavy geometry share the same WavyGeometry instance.
  2. Color-Sensitive Tile Cache: Inside the shared WavyGeometry class, TileRecord(const Color& color) maintains its own single-entry mutable cache for the cc::PaintRecord (tile_record_), keyed by tile_record_color_.
  3. Cache Thrashing Path: If TileRecord is called sequentially with alternating colors, the single-entry cache continuously misses. On every miss, it takes a slow path: invoking a PaintRecorder, drawing the path (triggering expensive Skia geometric analysis), and finishing the record (forcing memory allocations and memcpy operations within cc::PaintOpBuffer).

Potential Exploitation Steps

While our automated tooling cannot run a live Proof-of-Concept, an attacker would likely follow these steps to trigger the vulnerability from malicious web content:

  1. Create a webpage with thousands of interleaved <a> elements.
  2. Configure the href attributes to alternate between a 'Target' URL (the history state to be leaked) and a 'Probe' URL (a known unvisited URL).
  3. Apply CSS to ensure all links have identical wavy geometry (e.g., text-decoration: underline wavy; text-decoration-thickness: 2px; font-size: 16px;). This guarantees they all hit the shared WavyGeometry instance.
  4. Apply CSS rules that map visited and unvisited states to different colors (e.g., a:link { text-decoration-color: red; } a:visited { text-decoration-color: blue; }).
  5. Use JavaScript and requestAnimationFrame to continuously force repaints and measure the frame delta time.
  6. Observation:
    • If the Target URL is unvisited, all links share the same color (e.g., Red). The TileRecord cache hits after the first element, resulting in fast frame rendering.
    • If the Target URL is visited, the links alternate colors (Blue, Red, Blue, Red...). This causes continuous cache thrashing on the shared WavyGeometry instance, forcing expensive re-recording for every element and significantly increasing the frame render time.
    • By measuring this timing delta, the attacker reliably infers the visited state of the cross-origin Target URL.

Suggested Fix

To prevent this side-channel, the rendering of the wavy line path should be decoupled from the decoration color during the recording phase:

  • Modify WavyGeometry::TileRecord to record the path using a neutral mask color (e.g., solid black or white) and remove Color from its cache key.
  • During the paint phase in PaintWavyTextDecoration, apply the actual decoration_color to the cached neutral tile record using a tinting mechanism, such as a cc::ColorFilter applied to the PaintFlags, before drawing the rect.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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 wavy decoration geometry cache is shared across elements and keyed only by geometry, while its inner tile record cache is keyed by colour, so alternating colours cause repeated cache misses and expensive re-recording.

Impact

An attacker could reliably infer whether a user has visited a specific cross-origin URL, bypassing :visited history protections; the report notes no live proof-of-concept was run.

What the attacker needed

Victim visits a malicious page; browser renders wavy text decorations; attacker knows a target URL

The fix

The wavy line path should be recorded with a neutral colour and the actual decoration colour applied later via a tinting mechanism such as a colour filter, removing colour from the cache key.

How it was found

  1. Create a page with many interleaved anchor elements.
  2. Set hrefs to alternate between a target URL and a known unvisited probe URL.
  3. Apply CSS so all links share identical wavy underline geometry.
  4. Apply CSS that gives visited and unvisited links different decoration colours.
  5. Use requestAnimationFrame to force repaints and measure frame delta time.
  6. Infer the target URL's visited state from the timing difference.

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 from other websites to protect your privacy. This report found a way for a malicious page to guess whether you have visited a link by measuring how long it takes to draw wavy underlines. The drawing code uses a small cache that gets confused when links have different colours, making the page slower in a way the attacker can detect.

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.