Skip to content
Cache bugs Advisory Advanced CVE-2026-17857

Inappropriate implementation in Network (CVE-2026-17857)

A wildcard pattern used to identify pervasive resources was compiled as a full wildcard that matches across directory boundaries, so low-popularity tenant assets on a multi-tenant CDN could bypass cache partitioning. An attacker could then use cache timing to infer whether a victim had visited a site that loaded a particular asset.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 55 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential discrepancy in how the SharedResourceChecker compiles pervasive resource patterns allows a bare wildcard '*' to match across directory boundaries. This over-broad pattern matching on multi-tenant CDNs (such as cdn.shopify.com) can cause low-popularity tenant assets to bypass Network Isolation Key cache partitioning. A malicious site could potentially leverage this to perform cross-site cache-timing attacks (XS-Leaks) and infer a user's browsing history.

Affected files:

  • services/network/pervasive_resources/shared_resource_checker.cc
  • services/network/pervasive_resources/shared_resource_checker_patterns.h
  • tools/pervasive_resources/pervasive.py
  • net/http/http_cache.cc
  • third_party/liburlpattern/parse.cc
  • third_party/liburlpattern/utils.h

Estimated timestamp from git blame: 2026-01-29

Description

The SharedResourceChecker (in services/network/pervasive_resources/shared_resource_checker.cc) is designed to classify highly popular, pervasive web resources so they can skip HTTP Cache partitioning (omitting the NetworkIsolationKey double-key prefix), reducing redundant downloads of common scripts.

However, a discrepancy exists between how patterns are compiled by the generator and how they are parsed at runtime:

  1. The generator script (tools/pervasive_resources/pervasive.py) replaces single differing path segments with * and assumes that the wildcard will strictly match a single segment.
  2. At runtime, the checker compiles each entry via SimpleUrlPatternMatcher::Create(), which adheres to URLPattern constructor-string semantics. In this grammar, a bare * is parsed as a full wildcard (PartType::kFullWildcard, which compiles to the RE2 regular expression .*). Under standard pathname options, this full wildcard matches across / directory boundaries.

As a result, a pattern like https://cdn.shopify.com/extensions/*/assets/index.js (curated to match single-segment differences) is interpreted by the browser as matching /extensions/<arbitrary>/<depth>/<segments>/assets/index.js recursively.

This over-broad match enables multi-tenant hosting paths (where users can register custom subdirectories, regardless of popularity) to qualify for single-keyed caching. A malicious site can exploit this behavior to perform a cross-site history leak (XS-Leak) via cache timing.

Potential Attack Steps

Note: The following are suggested potential steps to trigger the issue, as our tooling does not currently have the capability to execute a live proof of concept.

  1. An attacker registers a custom Shopify Extension hosted at https://cdn.shopify.com/extensions/{ATTACKER_UUID}/{VERSION}/assets/index.js.
  2. The attacker targets a low-popularity Shopify Extension PROBE located at https://cdn.shopify.com/extensions/{TARGET_UUID}/{VERSION}/assets/index.js and wishes to find out if the victim has visited the merchant site using this extension.
  3. The victim navigates to https://attacker.example/ (this main-frame navigation satisfies the user gesture/navigation tracking gate in the SharedResourceChecker).
  4. The attacker's page programmatically loads PROBE (e.g. via <script src="...">) and measures the load time via PerformanceResourceTiming.
  5. Because of the wildcard bug, the pattern matcher matches the nested subdirectory. If the victim visited the target merchant earlier, the unpartitioned cache entry exists and is loaded instantly (Cache Hit). Otherwise, it fetches over the network (Cache Miss), leaking one bit of visited-site history.

Suggested Fix

  1. Modify the offline pattern generator (tools/pervasive_resources/pervasive.py) to emit a named segment wildcard (e.g., :v) rather than a bare * for single path segments, which will restrict matching to a single directory level.
  2. Alternatively, adjust SharedResourceChecker to escape bare * wildcards or translate them into segment-matching patterns before passing them to SimpleUrlPatternMatcher::Create().

Evaluated with Chrome root at commit: d8b226a3be7c9c1ac9240c09e14698866c82e4ac


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

The pattern generator assumed a bare asterisk matched a single path segment, but the runtime URL pattern parser treated it as a full wildcard that matches across slashes.

Impact

An attacker could potentially infer a victim's browsing history through cache timing, though the report notes the tooling could not execute a live proof of concept.

What the attacker needed

Victim visits attacker's page; attacker can host an extension on the CDN; victim previously visited a site using the target asset

The fix

The pattern generator should emit a named segment wildcard instead of a bare asterisk, or the checker should translate bare asterisks into segment-matching patterns before compiling.

How it was found

  1. The attacker registers a custom extension on the shared CDN.
  2. The attacker chooses a low-popularity target extension to probe.
  3. The victim visits the attacker's page, satisfying the navigation gate.
  4. The attacker's page loads the target asset and measures its load time.
  5. A fast load indicates a cache hit, leaking whether the victim visited the target site.

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.

Browsers normally keep cached files separate for each website, so one site cannot tell what another site loaded. Here, a rule meant to let very common files be shared was too loose, so some files from a shared hosting service were treated as common and shared across sites. That let a malicious page time how fast a file loaded and guess which sites the visitor had used before.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.