Vulnerability advisory

CVE-2026-103030

Dio: Cross-origin redirect leaks sensitive request headers in `dio_http2_adapter`

Published Updated OSV record ↗

Also known as GHSA-cr65-55v9-xhvv

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/cfug/dio ↗
All commits before 9d7ac913340084f3b4987b121e076f28d637a81e9d7ac913340084f3b4987b121e076f28d637a81e
Not specified9d6f43eda20af11ffff92e6f6ee710f0d03ffe9b
Also listed as affected (88)
  • dio_v5.10.0
  • web_adapter_v2.2.0
  • native_dio_adapter_v1.6.0
  • http2_adapter_v2.7.1
  • dio_v5.9.2
  • compatibility_layer_v0.1.1
  • cookie_manager_v3.4.0
  • http2_adapter_v2.7.0
  • web_adapter_v2.1.2
  • dio_v5.9.1
  • native_dio_adapter_v1.5.1
  • dio_v5.9.0
  • cookie_manager_v3.3.0
  • native_dio_adapter_v1.5.0
  • web_adapter_v2.1.1
  • dio_v5.8.0+1
  • http2_adapter_v2.6.0
  • web_adapter_v2.1.0
  • dio_v5.8.0
  • cookie_manager_v3.2.0
  • native_dio_adapter_v1.4.0
  • dio_v5.7.0
  • dio_v5.6.0
  • web_adapter_v2.0.0
  • dio_v5.5.0+1
  • web_adapter_v1.0.1
  • dio_v5.5.0
  • http2_adapter_v2.5.3
  • web_adapter_v1.0.0
  • dio_v5.4.3+1
  • dio_v5.4.3
  • http2_adapter_v2.5.2
  • dio_v5.4.2+1
  • dio_v5.4.2
  • http2_adapter_v2.5.1
  • http2_adapter_v2.5.0
  • dio_v5.4.1
  • compatibility_layer_v0.1.0
  • native_dio_adapter_v1.3.0
  • http2_adapter_v2.4.0
  • native_dio_adapter_v1.2.0
  • dio_v5.4.0
  • dio_v5.3.4
  • http2_adapter_v2.3.2
  • native_dio_adapter_v1.1.1
  • native_dio_adapter_v1.1.0
  • cookie_manager_v3.1.1
  • dio_v5.3.3
  • dio_v5.3.2
  • cookie_manager_v3.1.0+1
  • http2_adapter_v2.3.1+1
  • native_dio_adapter_v1.0.0+2
  • dio_v5.3.1
  • http2_adapter_v2.3.1
  • dio_v5.3.0
  • dio_v5.2.1+1
  • dio_v5.2.1
  • dio_v5.2.0+1
  • native_dio_adapter_v1.0.0+1
  • http2_adapter_v2.3.0
  • cookie_manager_v3.1.0
  • dio_v5.2.0
  • dio_v5.1.2
  • cookie_manager_v3.0.0
  • cookie_manager_v2.1.4
  • dio_v5.1.1
  • http2_adapter_v2.2.0
  • dio_v5.1.0
  • cookie_manager_v2.1.3
  • dio_v5.0.3
  • native_dio_adapter_v0.1.0
  • cookie_manager_v2.1.2
  • dio_v5.0.2
  • cookie_manager_v2.1.1
  • dio_v5.0.1
  • v5.0.0
  • 4.0.3
  • 4.0.2
  • 4.0.2-beta1
  • 4.0.1
  • 4.0.0
  • 3.0.10
  • 3.0.9
  • 3.0.8
  • 3.0.6
  • 3.0.5
  • 3.0.2
  • 3.0.0

Description

Dio is a powerful HTTP client for Dart and Flutter. From 1.0.0 until 2.8.0, dio_http2_adapter follows redirects in Http2Adapter._fetch by copying the original RequestOptions.headers into the redirected HTTP/2 request without comparing the source and destination origins. A server contacted by an application can return a cross-origin Location redirect to a different-origin destination, which then receives preserved Authorization, Cookie, and Proxy-Authorization headers because RequestOptions.copyWith retains the full header map. The issue applies when applications use Http2Adapter for authenticated requests, and redirect following is enabled by default. This issue is fixed in version 2.8.0.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools