Skip to content
Smuggling / CRLF Advisory Advanced CVE-2026-11016

Insufficient validation of untrusted input in Network (CVE-2026-11016)

The Network Service's DataPipeElementReader fails to clamp reads to the declared content size, allowing a compromised renderer to supply excess data that is sent over the socket. On HTTP/1.1 connections, this surplus data is interpreted by the server as a smuggled request, bypassing security checks like CORS and Fetch Metadata.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: DataPipeElementReader fails to clamp Mojo pipe reads to the declared content size. A compromised renderer can exploit this by declaring a small request body size but supplying excess data, which the Network Service blindly sends over the socket. On HTTP/1.1 connections, this surplus data is interpreted by the server as a smuggled request, bypassing security checks like CORS and Fetch Metadata.

Affected files:

  • services/network/data_pipe_element_reader.cc
  • net/base/upload_data_stream.cc
  • net/http/http_stream_parser.cc

Estimated timestamp from git blame: 2025-03-13

Description

There is a potential logic error in DataPipeElementReader::ReadInternal within the Network Service. When reading the request body from a Mojo data pipe, the function fails to clamp the number of bytes requested to the expected remaining bytes (BytesRemaining()).

Instead of clamping, it uses the entire length of the buffer provided by the caller (typically 16KB in HttpStreamParser):

C++
// services/network/data_pipe_element_reader.cc
int DataPipeElementReader::ReadInternal(net::IOBuffer* buf, int buf_length) {
  // ...
  if (BytesRemaining() == 0)
    return net::OK;

  // Missing clamp to BytesRemaining() here!
  size_t num_bytes = base::checked_cast<size_t>(buf_length);
  MojoResult rv = data_pipe_->ReadData(MOJO_READ_DATA_FLAG_NONE,
                                       buf->first(num_bytes), num_bytes);
  // ...
}

In contrast, other reader implementations like UploadBytesElementReader correctly enforce this boundary (e.g., using std::min(BytesRemaining(), buf_length)). Because UploadDataStream::OnReadCompleted only asserts bounds using DCHECK_LE (which is compiled out in Release builds), the oversized read successfully propagates and is written to the underlying network socket.

Potential Attack Scenario

Note: These are suggested steps based on static analysis; our tooling has not yet executed a live Proof of Concept.

  1. Renderer Compromise: An attacker compromises a renderer process and initiates an HTTP/1.1 request to a target server.
  2. Custom DataPipeGetter: The attacker supplies a custom network::mojom::DataPipeGetter for the request body via IPC.
  3. Size Manipulation: When the Network Service calls Init() on the getter, the attacker responds with a tiny size (e.g., 1 byte). The browser sets the outgoing HTTP header to Content-Length: 1.
  4. Smuggled Payload: The attacker writes a much larger payload (up to 16KB) into the Mojo pipe, consisting of 1 byte of junk followed by a fully-formed malicious HTTP request.
  5. Oversized Read: HttpStreamParser attempts to send the body and provides a 16KB buffer to DataPipeElementReader::ReadInternal. Due to the missing clamp, the entire malicious payload is read from the Mojo pipe.
  6. Transmission: The Network Service writes the full 16KB to the TCP socket.
  7. Request Smuggling: The target HTTP/1.1 server reads the Content-Length: 1 header, consumes the first byte as the legitimate request body, and natively parses the remaining data as a second, completely separate HTTP request on the same connection.

Impact

This primitive allows a compromised renderer to fully bypass Network Service defense-in-depth mechanisms, such as CORS preflight enforcement and Fetch Metadata (e.g., Sec-Fetch-Site). The attacker can successfully smuggle requests with spoofed internal headers to vulnerable first-party or internal network endpoints.

Suggested Fix

Update DataPipeElementReader::ReadInternal to clamp the read size to the remaining bytes expected:

C++
size_t num_bytes = std::min(base::checked_cast<size_t>(buf_length),
                            base::checked_cast<size_t>(BytesRemaining()));

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 DataPipeElementReader::ReadInternal function does not limit the number of bytes read from the Mojo data pipe to the remaining expected bytes, unlike other reader implementations.

Impact

A compromised renderer could bypass Network Service defense-in-depth mechanisms such as CORS preflight enforcement and Fetch Metadata, and smuggle requests with spoofed internal headers to vulnerable first-party or internal network endpoints.

What the attacker needed

Compromised renderer process; HTTP/1.1 connection to target server

The fix

The DataPipeElementReader::ReadInternal function should be updated to clamp the read size to the remaining bytes expected.

How it was found

  1. Compromise a renderer process and initiate an HTTP/1.1 request.
  2. Supply a custom DataPipeGetter for the request body via IPC.
  3. Respond with a tiny size (e.g., 1 byte) when the Network Service calls Init(), setting Content-Length: 1.
  4. Write a larger payload (up to 16KB) into the Mojo pipe, consisting of 1 byte of junk followed by a malicious HTTP request.
  5. HttpStreamParser provides a 16KB buffer to DataPipeElementReader::ReadInternal, which reads the entire payload due to the missing clamp.
  6. The Network Service writes the full 16KB to the TCP socket, and the server parses the excess as a second request.

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 a web page sends data to a server, the browser's network service is supposed to send only the amount of data it promised in the Content-Length header. Here, a bug lets a malicious page (if it has already taken over part of the browser) send extra data that the server treats as a second, hidden request. This can let the attacker sneak past protections like CORS, which normally stop one site from making requests to another.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.