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:
- Shared Static Cache: The function
GetWavyGeometryutilizes aDEFINE_STATIC_LOCALsingle-entry cache (wavy_cache) keyed byWavyParams.WavyParamsincludes geometry data but excludes the decoration color. Consequently, all elements in the renderer process with identical wavy geometry share the sameWavyGeometryinstance. - Color-Sensitive Tile Cache: Inside the shared
WavyGeometryclass,TileRecord(const Color& color)maintains its own single-entry mutable cache for thecc::PaintRecord(tile_record_), keyed bytile_record_color_. - Cache Thrashing Path: If
TileRecordis called sequentially with alternating colors, the single-entry cache continuously misses. On every miss, it takes a slow path: invoking aPaintRecorder, drawing the path (triggering expensive Skia geometric analysis), and finishing the record (forcing memory allocations andmemcpyoperations withincc::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:
- Create a webpage with thousands of interleaved
<a>elements. - Configure the
hrefattributes to alternate between a 'Target' URL (the history state to be leaked) and a 'Probe' URL (a known unvisited URL). - 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 sharedWavyGeometryinstance. - 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; }). - Use JavaScript and
requestAnimationFrameto continuously force repaints and measure the frame delta time. - Observation:
- If the Target URL is unvisited, all links share the same color (e.g., Red). The
TileRecordcache 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
WavyGeometryinstance, 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.
- If the Target URL is unvisited, all links share the same color (e.g., Red). The
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::TileRecordto record the path using a neutral mask color (e.g., solid black or white) and removeColorfrom its cache key. - During the paint phase in
PaintWavyTextDecoration, apply the actualdecoration_colorto the cached neutral tile record using a tinting mechanism, such as acc::ColorFilterapplied to thePaintFlags, 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.
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
- Create a page with many interleaved anchor elements.
- Set hrefs to alternate between a target URL and a known unvisited probe URL.
- Apply CSS so all links share identical wavy underline geometry.
- Apply CSS that gives visited and unvisited links different decoration colours.
- Use requestAnimationFrame to force repaints and measure frame delta time.
- 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.