CVE-2026-113440 json
HTTP/1.1 and HTTP/2 redirects resend basic_auth and cookie to a different scheme or port in hackney
published 2026-10-26 13 d ago modified 2026-11-02 6 d ago also EEF-CVE-2026-113440 , EUVD-2026-109835
- cvss
- 6.0
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- hex hackney 4.9.0
- benoitc hackney 4.9.0
- github.com/benoitc/hackney@8f94455 commit
- github.com/benoitc/hackney@6548384 commit
- github.com/benoitc/hackney#979 pull request
- github.com/benoitc/hackney/releases/tag/4.9.0 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 d ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.0 | 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 |
| CNA | 4.0 | 6.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| hex | hackney | >=2.0.0, <4.9.0 |
4.9.0 |
Affected products
- benoitc hackney
Classification
- Weakness
-
- CWE-522 Insufficiently Protected Credentials
References
-
github.com
/benoitc/hackney/pull/979
related, web
-
github.com
/benoitc/hackney/commit/8f944559bdb83da60b5c06f6cf6d842591278364
related, web
-
github.com
/benoitc/hackney/commit/6548384b22ea196023a1963e2967d5715b6d9564
patch
-
github.com
/benoitc/hackney/releases/tag/4.9.0
vendor-advisory, related, advisory
-
cna.erlef.org
/cves/CVE-2026-113440.html
related, web
-
osv.dev
/vulnerability/EEF-CVE-2026-113440
related
-
hex.pm
/packages/hackney
package
Sources
- CVE List CVE-2026-113440
- NVD CVE-2026-113440
- OSV EEF-CVE-2026-113440
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.