Skip to main content
Vulnerability Database/CVE-2026-103030

CVE-2026-103030: Dio HTTP Client Information Disclosure

CVE-2026-103030 is an information disclosure vulnerability in Dio HTTP Client that exposes sensitive headers during cross-origin redirects. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-103030 Overview

CVE-2026-103030 is an information disclosure vulnerability in the dio_http2_adapter package, an HTTP/2 adapter for the Dio HTTP client used in Dart and Flutter applications. The flaw affects versions 1.0.0 through versions prior to 2.8.0. The Http2Adapter._fetch method follows HTTP redirects by copying the original RequestOptions.headers into the redirected request without comparing source and destination origins. A malicious or compromised server can return a cross-origin Location redirect, causing the client to forward sensitive headers including Authorization, Cookie, and Proxy-Authorization to an attacker-controlled destination. The issue is tracked under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.

Critical Impact

Authenticated Flutter and Dart applications using Http2Adapter can leak bearer tokens, session cookies, and proxy credentials to arbitrary cross-origin destinations through server-controlled redirects.

Affected Products

  • dio_http2_adapter versions 1.0.0 through 2.7.x
  • Dart and Flutter applications that configure Dio with the HTTP/2 adapter for authenticated requests
  • Any client where redirect following remains enabled (the default configuration)

Discovery Timeline

  • 2026-10-13 - CVE-2026-103030 published to the National Vulnerability Database
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-103030

Vulnerability Analysis

The Http2Adapter._fetch method in dio_http2_adapter handles HTTP/2 redirects by cloning the original RequestOptions via copyWith. The clone preserves the complete header map without filtering sensitive authentication headers. When a server returns a 3xx response with a Location header pointing to a different origin, the adapter issues the follow-up request with the original credentials intact.

The behavior violates the standard practice established by browsers and server-side HTTP clients, which strip Authorization and credential headers on cross-origin redirects. Because Dio enables redirect following by default, applications inherit the unsafe behavior without opting in.

Root Cause

The root cause is missing origin comparison logic prior to header propagation. RequestOptions.copyWith retains the full header map, and _fetch does not inspect the redirect target's scheme, host, or port before replaying headers. Sensitive headers such as authorization, www-authenticate, cookie, cookie2, proxy-authorization, and proxy-authenticate are forwarded unconditionally.

Attack Vector

An attacker who controls or compromises a server endpoint contacted by a vulnerable application can respond with a cross-origin redirect to a host under their control. The redirected request carries the victim's authentication material, which the attacker captures from the inbound HTTP/2 request. The attack requires no user interaction and no privileges on the client.

text
   })  : connectionManager = connectionManager ?? ConnectionManager(),
         fallbackAdapter = fallbackAdapter ?? IOHttpClientAdapter();
 
+  static const _sensitiveRedirectHeaders = {
+    'authorization',
+    'www-authenticate',
+    'cookie',
+    'cookie2',
+    'proxy-authorization',
+    'proxy-authenticate',
+  };
+
   /// {@macro dio_http2_adapter.ConnectionManager}
   ConnectionManager connectionManager;

Source: GitHub commit 9d7ac91. The patch introduces a _sensitiveRedirectHeaders set that the adapter uses to strip credential-bearing headers when a redirect crosses origins.

Detection Methods for CVE-2026-103030

Indicators of Compromise

  • Outbound HTTP/2 requests from mobile or desktop clients to unexpected hosts that carry Authorization or Cookie headers matching values previously issued to a trusted origin.
  • Server access logs showing 3xx responses with Location values pointing to external domains, correlated with downstream requests from the same client identifiers.
  • Authentication tokens appearing in telemetry from untrusted autonomous systems or geographies.

Detection Strategies

  • Perform dependency inventory across Dart and Flutter projects to identify use of dio_http2_adapter at versions below 2.8.0 via pubspec.lock scanning.
  • Instrument network egress monitoring to flag HTTP/2 requests carrying bearer tokens to domains outside the organization's allowlist.
  • Review API gateway and reverse proxy logs for unexpected redirect responses issued to mobile clients.

Monitoring Recommendations

  • Ingest mobile and client-side proxy telemetry into a centralized data lake to correlate redirect chains with credential exposure.
  • Alert on authentication tokens observed in use from IP ranges distinct from the issuing session's origin.
  • Track upstream dependency advisories for Flutter and Dart ecosystem packages, including the GitHub Security Advisory GHSA-cr65-55v9-xhvv.

How to Mitigate CVE-2026-103030

Immediate Actions Required

  • Upgrade dio_http2_adapter to version 2.8.0 or later across all Dart and Flutter projects.
  • Rotate any long-lived bearer tokens, session cookies, or proxy credentials that may have been transmitted through vulnerable clients.
  • Audit server endpoints reachable by Flutter clients for unexpected or attacker-influenced redirect behavior.

Patch Information

The maintainers released the fix in dio_http2_adapter v2.8.0. The patch adds the _sensitiveRedirectHeaders constant and strips those headers before replaying a request to a different origin. Technical details are available in the upstream commit.

Workarounds

  • Disable automatic redirect following on authenticated requests by setting followRedirects: false in RequestOptions and handling redirects manually with explicit origin checks.
  • Scope sensitive headers to a per-request interceptor that validates the destination URL before attaching credentials.
  • Replace Http2Adapter with the default IOHttpClientAdapter for authenticated flows until the upgrade is deployed.
bash
# Update the dependency constraint in pubspec.yaml
dependencies:
  dio_http2_adapter: ^2.8.0

# Then refresh the lockfile
flutter pub upgrade dio_http2_adapter
dart pub get

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.