CVE-2026-113440
published medium CVSS 4.0 · 6.0HTTP/1.1 and HTTP/2 redirects resend basic_auth and cookie to a different scheme or port in hackney
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| benoitc | — | hackney2.0.0 to < 4.9.0 · Other versions: unaffected | Affected | Not stated | EEF |
| benoitc | — | benoitc/hackneyhackney · 8f944559bdb83da60b5c06f6cf6d842591278364 to < 6548384b22ea196023a1963e2967d5715b6d9564 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Insufficiently Protected Credentials vulnerability in hackney in benoitc hackney allows a redirecting server to obtain the basic_auth and cookie credentials of a request via a same-host redirect to another scheme or port. With follow_redirect enabled, hackney:follow_redirect/10 in src/hackney.erl reissues the request to the Location target after hackney:maybe_strip_auth_on_redirect/3, which compared only the hostname of the current and the redirect URL. A redirect from https to http on the same host resent the Authorization and Cookie headers in cleartext, where an on-path attacker can read them, and a redirect to another port on the same host handed them to a different service. location_trusted forwards credentials to any target by design and is unchanged. This issue affects hackney: from 2.0.0 before 4.9.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| benoitc | hackney | 2.0.0 to < 4.9.0 (affected · semver)Default: unaffected | EEF · cna |
| benoitc | hackney | 8f944559bdb83da60b5c06f6cf6d842591278364 to < 6548384b22ea196023a1963e2967d5715b6d9564 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-522 CWE-522 Insufficiently Protected Credentials
References
6- EEF CNA record for CVE-2026-113440 https://cna.erlef.org/cves/CVE-2026-113440.html
- Fix commit 6548384 in benoitc/hackney https://github.com/benoitc/hackney/commit/6548384b22ea196023a1963e2967d5715b6d9564
- Introducing commit 8f94455 in benoitc/hackney https://github.com/benoitc/hackney/commit/8f944559bdb83da60b5c06f6cf6d842591278364
- Strip basic_auth and cookie on redirects that change scheme or port (benoitc/hackney#979) https://github.com/benoitc/hackney/pull/979
- hackney 4.9.0 release notes https://github.com/benoitc/hackney/releases/tag/4.9.0
- OSV record EEF-CVE-2026-113440 https://osv.dev/vulnerability/EEF-CVE-2026-113440
Provider assertions
2EEF · cna
HTTP/1.1 and HTTP/2 redirects resend basic_auth and cookie to a different scheme or port in hackney
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 064c40191649e0088d1442f91fce89a67326f2833055b3bc936c76020ef9f59e
- Ingested
- 19 Nov 2026, 08:22:50 UTC
- Source record
- Official CVE record