Skip to content
CORS Advisory Advanced CVE-2026-87573

Improper input validation in Network (CVE-2026-87573)

Chrome's CORS safelist check for the Range header accepted values that do not match the Fetch specification's strict grammar, such as leading signs, case-insensitive units and sentinel values. An attacker could therefore send non-conforming Range headers cross-origin without triggering a preflight request.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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: Chrome's CORS implementation incorrectly safelists 'Range' headers that deviate from the Fetch specification's strict grammar. By using leading signs, case-insensitive units, or specific sentinel values, an attacker can bypass mandatory CORS preflight requests to cross-origin servers.

Affected files:

  • services/network/public/cpp/cors/cors.cc
  • net/http/http_util.cc
  • net/http/http_byte_range.cc

Estimated timestamp from git blame: 2021-10-11

Summary

Chrome's implementation of the CORS-safelisted Range header check is overly permissive, failing to strictly adhere to the Fetch specification's definition of a 'simple range header value'. The specification requires the value to follow the strict format: "bytes=" 1*DIGIT "-" *DIGIT.

Due to the use of a permissive integer parser in the network stack, Chrome accepts values with leading signs (e.g., +0), case-insensitive units (e.g., BYTES=), and internal sentinel values (e.g., -1). This allows cross-origin requests with non-conforming Range headers to bypass the CORS preflight (OPTIONS) mechanism.

Root Cause Analysis

The issue resides in the IsCorsSafelistedHeader function within services/network/public/cpp/cors/cors.cc. This function lowercases the header value and then delegates parsing to net::HttpUtil::ParseRangeHeader in net/http/http_util.cc.

  1. Leading Signs: net::HttpUtil::ParseRangeHeader uses base::StringToInt64 to convert the string offsets into integers. base::StringToInt64 permits a leading + sign (e.g., +0), which is forbidden by the Fetch spec's 1*DIGIT requirement.
  2. Sentinel Collision: A header like Range: bytes=0--1 results in the second token being parsed as -1. In net/http/http_byte_range.cc, -1 is defined as kPositionNotSpecified. Consequently, HttpByteRange::IsValid() treats this as an open-ended range (bytes=0-), which is a simple range and thus incorrectly safelisted.
  3. Case-Insensitive Unit: The code lowercases the header value before processing, allowing BYTES=0-100 to be safelisted. The Fetch specification requires a byte-exact match for the bytes= prefix in the safelist check.

Potential Impact

An attacker can deliver non-standard Range header values to a cross-origin server without the server's prior consent via a CORS preflight request. This bypasses a layer of defense-in-depth intended to protect servers from unexpected cross-origin traffic and could be used as a building block for parser-differential attacks.

Potential Reproduction Steps (Suggested)

  1. Host an attacker page on https://attacker.test.
  2. Execute a cross-origin fetch from the page:
    JavaScript
    fetch('https://victim.example/resource', {
      headers: { 'Range': 'bytes=+0-100' },
      mode: 'cors'
    });
    
  3. Observe the network traffic to victim.example. A GET request should be sent with the literal Range: bytes=+0-100 header without a preceding OPTIONS preflight request.
  4. Confirm that other major browsers (e.g., Firefox) correctly trigger a preflight for the same request.

Suggested Fix

Modify net::HttpUtil::ParseRangeHeader (or the caller in services/network/public/cpp/cors/cors.cc) to use a stricter integer parser, such as net::ParseInt64 with net::ParseIntFormat::NON_NEGATIVE. Additionally, ensure that the bytes= prefix check is case-sensitive when performing CORS safelist validation.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 safelist check lowercased the header value and then used a permissive integer parser, so values outside the spec's strict grammar were treated as simple ranges.

Impact

An attacker could send unexpected cross-origin Range headers to a server without its consent, bypassing a defence-in-depth layer and potentially serving as a building block for parser-differential attacks.

What the attacker needed

Victim server accepts cross-origin requests; attacker hosts a web page; victim visits the attacker page

The fix

The parser should use a stricter non-negative integer parser and the bytes= prefix check should be case-sensitive, but the text does not say this was fixed.

How it was found

  1. Host an attacker-controlled page.
  2. Run a cross-origin fetch from that page with a non-conforming Range header.
  3. Observe that a GET request reaches the victim server without a preceding preflight.
  4. Confirm that another major browser does trigger a preflight for the same 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 asks a browser to fetch data from a different site, the browser normally first asks that site for permission in a separate check called a preflight. A few simple headers are exempt from this check, and Range (used to request part of a file) is one of them, but only in a very strict form. Chrome was too lenient about what counted as that simple form, so unusual Range values slipped through without the permission check.

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.