Vulnerability advisory
CVE-2026-103030
Dio: Cross-origin redirect leaks sensitive request headers in `dio_http2_adapter`
Also known as GHSA-cr65-55v9-xhvv
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/cfug/dio ↗ | |
| All commits before 9d7ac913340084f3b4987b121e076f28d637a81e | 9d7ac913340084f3b4987b121e076f28d637a81e |
| Not specified | 9d6f43eda20af11ffff92e6f6ee710f0d03ffe9b |
Also listed as affected (88)
| |
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
- Webgithub.com/cfug/dio/releases/tag/http2_adapter_v2.8.0 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103030.json ↗
- Advisorygithub.com/cfug/dio/security/advisories/GHSA-cr65-55v9-xhvv ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-103030 ↗
- Fixgithub.com/cfug/dio/commit/9d7ac913340084f3b4987b121e076f28d637a81e ↗