Skip to content
CORS Advisory Advanced CVE-2026-12025

Insufficient validation of untrusted input Network (CVE-2026-12025)

The network service's header validation does not block custom method-override headers that contain forbidden methods such as TRACE, unlike the renderer-side check. A compromised renderer could send a no-CORS request with such a header to a server that honours it, causing the server to echo the request's cookies in a TRACE response that Opaque Response Blocking allows through, enabling cross-origin cookie theft.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 16 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 compromised renderer can potentially bypass forbidden method restrictions to exfiltrate cross-origin cookies. By sending a kNoCors request containing custom method-override headers (like X-HTTP-Method-Override), the request can bypass the Network Service trust boundary checks. If a target server honors these override headers, it can reflect cookies in a TRACE response that Opaque Response Blocking (ORB) fails open on.

Affected files:

  • services/network/public/cpp/header_util.cc
  • services/network/cors/cors_url_loader_factory.cc

Estimated timestamp from git blame: 2022-10-24

Potential Root Cause Analysis

The Fetch specification bans specific request headers (X-HTTP-Method-Override, X-HTTP-Method, and X-Method-Override) when their values parse to a forbidden method (CONNECT, TRACE, or TRACK).

Chrome enforces this restriction renderer-side in Blink via net::HttpUtil::IsSafeHeader (defined in net/http/http_util.cc at line 385), which explicitly parses custom override headers against the kForbiddenHeaderFieldsWithForbiddenMethod list and rejects them if they contain a forbidden method.

However, at the network-service trust boundary (services/network/cors/cors_url_loader_factory.cc), the validation relies on network::IsRequestHeaderSafe in services/network/public/cpp/header_util.cc (line 81) to verify request header safety. The kUnsafeHeaders blocklist in IsRequestHeaderSafe does not contain any of the custom method-override headers. Furthermore, the check for forbidden methods in CorsURLLoaderFactory::IsValidRequest (line 912) only inspects the main HTTP request method (request.method).

Because of this validation gap, a compromised renderer can directly invoke the Network Service Mojo interface to issue a request with a safe method (such as POST) containing an unsafe method override (such as X-HTTP-Method-Override: TRACE), bypassing both the forbidden method and CORS preflight checks.

Potential Attack Scenario / Trigger Path

Note: The steps described below are a theoretical attack scenario identified via static source code analysis. Our tooling does not currently have the capability to execute code or verify exploitation dynamically.

  1. Request Formulation: A compromised renderer sends a Mojo request to the Network Service via URLLoaderFactory::CreateLoaderAndStart with:
    • method = 'POST'
    • mode = mojom::RequestMode::kNoCors
    • credentials_mode = mojom::CredentialsMode::kInclude
    • headers = {'X-HTTP-Method-Override': 'TRACE'}
    • url = 'https://victim.com' (a cross-origin server configured to honor method override headers).
  2. Network Service Verification: CorsURLLoaderFactory::IsValidRequest accepts the request. The request headers are considered safe because 'X-HTTP-Method-Override' is not in kUnsafeHeaders. The forbidden method check passes because IsForbiddenMethod('POST') is false. No CORS preflight is triggered due to mode = kNoCors.
  3. Request Transmission: The Network Service attaches the victim's session cookies and transmits the request unaltered over the network.
  4. Server Dispatch: The victim server processes the request. Recognizing the X-HTTP-Method-Override: TRACE header, it handles the request as a TRACE request and echoes back the original request headers (including the sensitive session Cookie header) in the response body.
  5. ORB Evaluation: The response is returned, typically with a message/http or text/plain MIME type. Opaque Response Blocking (ORB) evaluates the response headers:
    • GetCanonicalMimeType('message/http') maps the MIME type to MimeType::kOthers (services/network/orb/orb_mimetypes.cc at line 223).
    • Since kOthers is not on the blocklist or unconditionally blocked, ORB falls back to content sniffing.
    • Sniffing the reflected TRACE request headers does not match HTML, XML, or JSON signatures. Thus, ORB fails open and returns Decision::kAllow (services/network/orb/orb_impl.cc at line 482).
  6. Exfiltration: The response body data pipe is forwarded to the compromised renderer. The renderer reads the reflected headers from the stream, exfiltrating the victim's cross-origin session cookies.

Suggested Remediation

To resolve this issue, the validation within the Network Service must be aligned with the renderer-side security model.

Update network::IsRequestHeaderSafe (or add a check in AreRequestHeadersSafe / IsValidRequest) to validate that X-HTTP-Method-Override, X-HTTP-Method, and X-Method-Override headers do not contain forbidden methods (TRACE, TRACK, CONNECT), leveraging the same parsing logic present in net::HttpUtil::IsSafeHeader.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 network service's header safety check does not include the custom method-override headers in its blocklist and only checks the main request method for forbidden methods, so it accepts requests that the renderer-side check would reject.

Impact

A compromised renderer could exfiltrate cross-origin session cookies if the target server honours method-override headers and ORB allows the response; the report notes the scenario is theoretical and was not executed.

What the attacker needed

Compromised renderer; target server honours method-override headers; ORB allows the response

The fix

The network service's header validation should be updated to reject method-override headers containing forbidden methods, using the same parsing logic as the renderer-side check.

How it was found

  1. A compromised renderer sends a no-CORS request with credentials included, a POST method, and a method-override header set to TRACE to a cross-origin server that honours such headers.
  2. The network service accepts the request because the override header is not on its unsafe list and the main method is not forbidden.
  3. The network service attaches the victim's cookies and sends the request to the server.
  4. The server treats the request as TRACE and echoes the request headers, including the Cookie header, in the response body.
  5. Opaque Response Blocking evaluates the response, fails to recognise a blocked type, and allows it through.
  6. The response body is forwarded to the compromised renderer, which reads the reflected cookies.

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.

A web page is normally not allowed to read data from another website. This report describes a gap where a malicious page that has already taken over part of the browser could ask the browser's network component to send a special request that tricks the other website into repeating back the user's login cookies. The browser's response filter then lets that repeated data through, so the attacker can read the cookies.

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.