{"answers":{"affected":"1 open source package ship an affected version, including hackney.","exploited":"There is no known exploitation of CVE-2026-113440 in the wild and no public exploit code.","fix":"Upgrade hackney to 4.9.0 or later.","what":"CVE-2026-113440 is a medium-severity vulnerability in benoitc hackney, published on 26 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-113440 and fix it if it is affected.\n\nWhat it is: CVE-2026-113440 is a medium-severity vulnerability in benoitc hackney, published on 26 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-113440 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hackney (Hex): affected from 2.0.0; fixed in 4.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-113440/ (Markdown: https://insights.sbomify.com/CVE-2026-113440/index.md)","id":"CVE-2026-113440","markdown":"https://insights.sbomify.com/CVE-2026-113440/index.md","name":"CVE-2026-113440","record":{"aliases":["EEF-CVE-2026-113440","GHSA-m347-hm9w-wwv9"],"analysis":null,"analysis_generated_by":null,"assigner":"EEF","cpe":[],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"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.\n\nThis issue affects hackney: from 2.0.0 before 4.9.0.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"HTTP/1.1 and HTTP/2 redirects resend basic_auth and cookie to a different scheme or port in hackney","id":"CVE-2026-113440","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":null,"year":"2026"},"n_packages":1,"n_references":6,"next":{"headline":"Cross-Site Scripting in extension \"TYPO3 Fluid-Form by coding.ms\" (fluid_form)","id":"CVE-2026-113442"},"packages":[{"ecosystem":"Hex","fixed":["4.9.0"],"introduced":["2.0.0"],"last_affected":[],"package":"hackney","purl":"pkg:hex/hackney","source":"EEF-CVE-2026-113440"}],"prev":{"headline":"Pleasanter provided fails to properly verify passwords in LDAP authentication when processing specially crafted requests under certain configurations.","id":"CVE-2026-113438"},"products":["hackney"],"published":"2026-10-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-26","vendors":["benoitc"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-113440/"}