Skip to content
Misconfiguration Advisory Advanced CVE-2026-87551

Improper certificate validation in CORS (CVE-2026-87551)

The code path that stores a compression dictionary from the Use-As-Dictionary response header does not check the connection's TLS certificate status. An active network attacker who gets a user to click through a certificate warning could plant a dictionary ID that the browser later sends to the genuine site over a clean connection.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 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: The write path for the Use-As-Dictionary response header does not inspect the connection's SSL certificate status or verify if the certificate is issued by a known root. This potentially allows an active network attacker on a certificate-error HTTPS connection (following an interstitial click-through) to persist arbitrary, origin-keyed dictionary IDs. These IDs will be transmitted back to the legitimate server on subsequent clean, valid TLS connections.

Affected files:

  • services/network/cors/cors_url_loader.cc
  • services/network/shared_dictionary/shared_dictionary_storage.cc

Estimated timestamp from git blame: 2023-04-12

Root Cause

When processing a response containing the Use-As-Dictionary header, CorsURLLoader::OnReceiveResponse delegates writer creation to SharedDictionaryStorage::MaybeCreateWriter without inspecting the connection's ssl_info or certificate status:

C++
// services/network/cors/cors_url_loader.cc:651-667
std::optional<std::string> use_as_dictionary_header = GetHeaderString(
    *response_head, shared_dictionary::kUseAsDictionaryHeaderName);
if (use_as_dictionary_header) {
  base::expected<scoped_refptr<SharedDictionaryWriter>,
                 mojom::SharedDictionaryError>
      writer_or_error = SharedDictionaryStorage::MaybeCreateWriter(
          *use_as_dictionary_header,
          request_.shared_dictionary_writer_enabled,
          shared_dictionary_storage_.get(), request_.mode, response_tainting_,
          request_.url, response_head->request_time,
          response_head->response_time, *response_head->headers,
          response_head->was_fetched_via_cache,
          base::BindOnce(
              &SharedDictionaryAccessChecker::CheckAllowedToWriteAndReport, ...));

Inside SharedDictionaryStorage::MaybeCreateWriter (services/network/shared_dictionary/shared_dictionary_storage.cc), checks are performed on the request mode, writer-enabled state, secure-context storage, and response tainting, but the function does not inspect connection security flags or ssl_info.

By contrast, other persistent origin-keyed network state features prevent registration on certificate-error connections. For example, Strict Transport Security (HSTS) and Device Bound Session Credentials (DBSC) both explicitly abort processing if a certificate error is present:

C++
// net/url_request/url_request_http_job.cc:1168 and :1192
if (!ssl_info.is_valid() || IsCertStatusError(ssl_info.cert_status)) {
  return;
}

Additionally, the shared dictionary read path carries a known-root certificate constraint (net/shared_dictionary/shared_dictionary_network_transaction.cc:250-255), which is checked when utilizing a registered dictionary on subsequent connections. However, because the write path is not gated similarly, an invalid or untrusted certificate session can successfully populate on-disk persistent dictionary state.

Potential Impact

An active network attacker who successfully convinces a user to click through an SSL/TLS interstitial warning on https://victim.example can write and persist an arbitrary compression dictionary payload and a custom Dictionary-ID (up to 1024 bytes) for the victim's origin.

On subsequent navigations to the legitimate https://victim.example over a clean network with a valid root certificate, the browser's SharedDictionaryNetworkTransaction will retrieve the registered dictionary and attach the attacker-chosen Dictionary-ID header to all matching outgoing requests. This violates the security boundary that prevents untrusted certificate connections from setting persistent origin-keyed network state.

Suggested Reproduction Steps (Potential)

Note: Our tooling does not currently have the capability to run code directly, so these are potential steps to illustrate the behavior:

  1. On an attacker-controlled network, intercept requests to https://victim.example with a self-signed certificate.
  2. In Chrome, navigate to https://victim.example and click "Proceed" on the SSL interstitial warning.
  3. Serve a 200 OK response with the header Use-As-Dictionary: match="/*", id="MITM-PLANTED-12345", accompanied by a valid dictionary body and cache headers.
  4. Close the browser, move the client to a clean network, and restart Chrome.
  5. Navigate to the legitimate https://victim.example and observe that the outgoing request headers contain Dictionary-ID: "MITM-PLANTED-12345" over the genuine secure connection.

Suggested Fix

Ensure that dictionaries are not registered on connections with certificate errors. In CorsURLLoader::OnReceiveResponse (or inside SharedDictionaryStorage::MaybeCreateWriter), evaluate response_head->cert_status or inspect the response's ssl_info to ensure there are no certificate errors prior to writer creation:

C++
if (response_head->ssl_info && net::IsCertStatusError(response_head->ssl_info->cert_status)) {
  // Reject dictionary writer creation
}

Evaluated with Chrome root at commit: 94d9235ebe3b7276e5284f0dc5d55577ff949908


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 dictionary write path never inspects the response's ssl_info or certificate status before creating a persistent, origin-keyed writer, unlike HSTS and DBSC which abort on certificate errors.

Impact

An active network attacker could persist an arbitrary dictionary ID for the victim origin and have it sent to the legitimate server on later clean TLS connections, though the user must first click through a certificate warning.

What the attacker needed

Attacker on the network path; victim clicks through a certificate warning; browser restart to persist state

The fix

The write path should reject dictionary registration when the response's certificate status shows an error, as the report suggests.

How it was found

  1. Intercept requests to the victim site on an attacker-controlled network using a self-signed certificate.
  2. Navigate to the site in Chrome and click through the SSL interstitial warning.
  3. Serve a response with a Use-As-Dictionary header, a dictionary body and cache headers.
  4. Close the browser, move to a clean network and restart Chrome.
  5. Visit the legitimate site and observe the attacker-chosen Dictionary-ID in outgoing request headers.

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 site with a bad certificate, the browser shows a warning you can click past. This report says that after clicking past, the browser can still save a small piece of site-specific data (a 'dictionary' used for compression) that the attacker chose. Later, on a normal secure visit, the browser sends that attacker-chosen identifier back to the real site, which should never have been possible from an untrusted connection.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.