CVE-2026-103030 Dio: Cross-origin redirect leaks sensitive request headers in `dio_http2_adapter`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pub dio_http2_adapter(Pub) | >= 1.0.0, <= 2.7.1 | after 2.7.1 | Fixed |
| cfug dio | = >= 1.0.0, < 2.8.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cfug dio | = >= 1.0.0, < 2.8.0 | No fix listed |
| pub dio_http2_adapter(Pub) | >= 1.0.0, <= 2.7.1 | No fix listed |
References
- https://github.com/cfug/dio/security/advisories/GHSA-cr65-55v9-xhvv exploit vendor-advisory
- https://github.com/cfug/dio/commit/9d7ac913340084f3b4987b121e076f28d637a81e patch
- https://github.com/cfug/dio/releases/tag/http2_adapter_v2.8.0
- nvd.nist.gov third-party-advisory
- github.com
- ENISA EUVD EUVD-2026-98921 third-party-advisory