Skip to content
CORS Advisory Advanced CVE-2026-76033

Inappropriate implementation in CORS (CVE-2026-76033)

A renderer-writable field controlling accepted stream types was not validated for untrusted renderers, so a compromised renderer could disable content decoding in the network service. Raw compressed bytes then reached the Opaque Response Blocking sniffer, which failed open, potentially letting the renderer read credentialed cross-origin response bodies.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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 compromised renderer can potentially bypass Site Isolation and read credentialed cross-origin response bodies by exploiting a lack of validation on the devtools_accepted_stream_types parameter. By setting this renderer-writable Mojom field to an empty array, the network service's content decoding is bypassed, causing raw compressed bytes to be sent to the Opaque Response Blocking (ORB) sniffing layer. Because ORB fails open on compressed data that does not match plaintext signature rules, the credentialed cross-origin response is allowed and delivered to the compromised renderer to be decompressed locally.

Affected files:

  • services/network/cors/cors_url_loader_factory.cc
  • services/network/url_loader_util.cc
  • services/network/public/mojom/url_request.mojom
  • net/filter/filter_source_stream.cc
  • net/url_request/url_request_http_job.cc
  • services/network/url_loader.cc
  • services/network/orb/orb_impl.cc

Estimated timestamp from git blame: 2021-03-22

Summary

A potential vulnerability in Chromium's network service allows a compromised renderer to bypass Site Isolation (Opaque Response Blocking - ORB) and read credentialed cross-origin response bodies. The issue stems from a lack of validation on the devtools_accepted_stream_types parameter inside ResourceRequest. An untrusted renderer can set this field to an empty array, which disables content decompression in the network service. Consequently, raw compressed bytes are passed to the ORB sniffer. Since compressed bytes do not match plaintext signatures of blocked types (such as HTML, XML, or JSON), ORB fails open, sending the compressed response directly to the compromised renderer where it can be decompressed locally.

Affected Files

  • services/network/cors/cors_url_loader_factory.cc
  • services/network/url_loader_util.cc
  • services/network/public/mojom/url_request.mojom
  • net/filter/filter_source_stream.cc
  • net/url_request/url_request_http_job.cc
  • services/network/url_loader.cc
  • services/network/orb/orb_impl.cc

Technical Analysis

  1. Lack of Validation in IsValidRequest: The ResourceRequest.devtools_accepted_stream_types Mojom field is renderer-writable and is not stored in TrustedUrlRequestParams. In CorsURLLoaderFactory::IsValidRequest() (services/network/cors/cors_url_loader_factory.cc), no validation or sanitization is applied to this field for untrusted renderers (where is_trusted_ is false). The field is copied verbatim to the net::URLRequest in services/network/url_loader_util.cc (line 539):

    C++
    url_request.set_accepted_stream_types(request.devtools_accepted_stream_types);
    
  2. Content-Decoder Elision: When a renderer supplies devtools_accepted_stream_types = [] (an empty array) and the server returns a compressed response (e.g., Content-Encoding: gzip):

    • FilterSourceStream::GetContentEncodingTypes() (net/filter/filter_source_stream.cc at line 110) is called with the empty set of accepted stream types.
    • Because the list of accepted types is non-null but empty, the method filters out the encoding and returns an empty vector of encoding types.
    • URLRequestHttpJob::SetUpSourceStream() (net/url_request/url_request_http_job.cc at line 1541) calls FilterSourceStream::CreateDecodingSourceStream() with an empty vector, which returns the original, raw compressed stream without wrapping it in a decompression filter (e.g., GzipSourceStream).
    • Since client_side_content_decoding_enabled is kept false by the renderer, the PartialDecoder safety net in URLLoader is never instantiated.
  3. ORB Fail-Open on Compressed Bytes: When ORB is enabled, a cross-origin, no-cors response with a sniffable MIME type (such as text/plain or application/json) without X-Content-Type-Options: nosniff falls back to body sniffing via OpaqueResponseBlockingAnalyzer::Sniff():

    • The raw compressed bytes (e.g., gzip starting with 1f 8b 08) are analyzed.
    • Standard plaintext sniffers (SniffForHTML(), SniffForXML(), SniffForFetchOnlyResource()) fail to match the raw compressed byte signatures and return kNo.
    • Consequently, ORB returns kSniffMore and eventually fails open to kAllow via HandleEndOfSniffableResponseBody() once sniffing limits are reached.
    • The raw compressed bytes are piped over the Mojo data pipe directly to the renderer, which decompresses them locally to read the cross-origin authenticated data.

Potential Trigger Steps

Note: These are potential steps. Our tooling agent does not have the ability to execute code and has not run a proof of concept.

  1. A compromised renderer initiates a cross-origin authenticated request (mode = kNoCors, credentials_mode = kInclude) targeting a compressed endpoint.
  2. The renderer sets devtools_accepted_stream_types = [] (empty array) and client_side_content_decoding_enabled = false inside ResourceRequest over its bound URLLoaderFactory Mojo pipe.
  3. The renderer includes a custom Accept-Encoding: gzip header to force the server to compress the response.
  4. The network service forwards the request to the server, and the server returns a 200 response containing a compressed credentialed secret.
  5. The decoding chain is elided, bypassing decompression in the network service.
  6. ORB processes the raw compressed body, fails to detect JSON/HTML/XML content signatures, and fails open to kAllow.
  7. The compromised renderer receives the compressed payload and decodes it locally to extract the sensitive data.

Recommended Remediation

Restrict or clear devtools_accepted_stream_types in CorsURLLoaderFactory::IsValidRequest() when is_trusted_ is false, ensuring that untrusted renderers cannot modify the accepted stream types to bypass content decoding in the network service.

Evaluated with Chrome root at commit: a2bea94528f4bd6cc57739c43fa3bb890b8367d3


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 devtools_accepted_stream_types field is renderer-writable and is not validated or sanitised for untrusted renderers, so it can switch off network-service decompression and leave ORB sniffing raw compressed bytes.

Impact

A compromised renderer could bypass Site Isolation and read credentialed cross-origin response bodies, though the report notes the steps are potential and no proof of concept was run.

What the attacker needed

Renderer already compromised; cross-origin endpoint returns compressed data; response lacks nosniff header

The fix

The field should be restricted or cleared for untrusted renderers in the request validation step so they cannot change accepted stream types.

How it was found

  1. A compromised renderer sends a cross-origin authenticated no-cors request to a compressed endpoint.
  2. The renderer sets the accepted stream types to an empty array and disables client-side content decoding.
  3. The renderer adds an Accept-Encoding header asking the server to compress the response.
  4. The server returns a compressed response containing credentialed data.
  5. The network service skips decompression and passes raw compressed bytes to ORB.
  6. ORB fails to match plaintext signatures and fails open, so the renderer receives and decompresses the data locally.

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 keep websites from different origins apart so one site cannot read another site's private data. Here, a page that had already been taken over could ask the browser's networking layer to skip unpacking compressed responses, so the safety check that inspects response bodies saw only unreadable compressed data and let it through. The page could then unpack it itself and read data it should not have been able to see.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's 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.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.