CVE-2026-115693benoitc hackney
Improper Certificate Validation in hackney
Critical 9.1 No auth needed
Follow: this CVE · benoitc · benoitc hackney We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 26, 2026
- Updated
- Nov 2, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/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
What happens
An improper certificate validation vulnerability in hackney_ssl allows an on-path attacker to impersonate a server pinned to a private certificate authority. The issue occurs because hackney retains a partial chain callback even when the trust store is replaced, allowing acceptance of chains ending in a publicly trusted root. The attacker requires a valid certificate for the target hostname.
Show the original NVD text
Improper Certificate Validation vulnerability in hackney_ssl in benoitc hackney allows an on-path attacker to impersonate a server pinned to a private certificate authority via a certificate chain that ends in a publicly trusted root. hackney adds {partial_chain, fun hackney_ssl:partial_chain/1} to every verify_peer configuration. The callback returns any certificate in the peer chain whose public key matches a root in the bundled certifi store as the trust anchor, and OTP honours that callback over the configured cacerts. hackney_ssl:merge_ssl_opts/3 kept the callback when the caller replaced the trust store with cacerts or cacertfile in ssl_options, so a connection pinned to a private CA still accepted any chain that carried a publicly trusted root.
The hostname check still applies, so the attacker needs a publicly trusted certificate for the pinned hostname.
This issue affects hackney: from 1.24.0 before 4.9.0.
What to do
Patch available · fixed versions: 4.9.0
Update hackney to version 4.9.0 or later to fix the certificate validation issue.
- Apply the vendor's security update for hackney.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Hex | hackney |
≥ 1.24.0 < 4.9.0 |
4.9.0 |
— |
Per OSV / GitHub Advisories (EEF-CVE-2026-115693). Check the version in your lockfile before upgrading.
Affected products
- benoitc · hackney
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.