{"answers":{"affected":"2 open source packages ship an affected version, including follow-redirects. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40895 in the wild and no public exploit code.","fix":"Upgrade follow-redirects to 1.16.0 or later.","what":"CVE-2026-40895 is a medium-severity vulnerability in follow-redirects, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40895 and fix it if it is affected.\n\nWhat it is: CVE-2026-40895 is a medium-severity vulnerability in follow-redirects, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40895 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- follow-redirects (npm): affected all versions; fixed in 1.16.0\n- follow-redirects (npm): affected all versions; fixed in 1.16.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-40895/ (Markdown: https://insights.sbomify.com/CVE-2026-40895/index.md)","id":"CVE-2026-40895","markdown":"https://insights.sbomify.com/CVE-2026-40895/index.md","name":"CVE-2026-40895","record":{"aliases":["CLEANSTART-2026-NO27854","CLSA-2026-1777163888","CLSA-2026-1778805975","CLSA-2026-1782262689","CLSA-2026-1782262694","CLSA-2026-1787663318","CLSA-2026-1787664257","DEBIAN-CVE-2026-40895","ECHO-87ff-1faa-6dfd","GHSA-r4q5-vmmm-2653","MINI-3j4w-63wq-gxrc","MINI-44g5-97r9-93wp","MINI-46r2-9928-hjr5","MINI-4jq5-jfg2-r694","MINI-4mp2-7773-xvr7","MINI-4w36-jfrg-m2gv","MINI-5h3c-prx7-2889","MINI-6xf7-v6mf-x78m","MINI-9f49-rfhm-8rwx","MINI-9j5j-96cw-hpph","MINI-f7qg-f4q4-cwhr","MINI-fc73-3qqm-3x34","MINI-fmf6-rx6c-v4q6","MINI-g7r7-v5fj-m9gf","MINI-gw95-rrg8-qr27","MINI-hwwp-4p4r-px6g","MINI-j6jm-m3xm-jqx7","MINI-jrrg-9p9q-xmc4","MINI-q377-x3mm-m65c","MINI-q6vc-2xr9-x899","MINI-qjvg-cmjr-jj5m","MINI-qvwf-mchc-g85g","MINI-w7fg-j6x9-66h5","MINI-wc8m-4hr6-7xjj","MINI-wg3p-prv4-8pmj","ROOT-APP-NPM-GHSA-r4q5-vmmm-2653","UBUNTU-CVE-2026-40895","USN-8632-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js HTTP library","requires_auth":"none","summary":"Attackers can steal custom authentication headers from Node.js applications when they follow cross-domain redirects, exposing sensitive API keys or tokens.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"follow-redirects","vendor":"follow-redirects_project"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"follow-redirects is an open source, drop-in replacement for Node's `http` and `https` modules that automatically follows redirects. Prior to 1.16.0, when an HTTP request follows a cross-domain redirect (301/302/307/308), follow-redirects only strips authorization, proxy-authorization, and cookie headers (matched by regex at index.js). Any custom authentication header (e.g., X-API-Key, X-Auth-Token, Api-Key, Token) is forwarded verbatim to the redirect target. This vulnerability is fixed in 1.16.0.","ecosystems":["npm"],"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":"follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets","id":"CVE-2026-40895","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"OpenProject has Cross-Project Meeting Agenda Item Injection via Unscoped Section Lookup","id":"CVE-2026-40896"},"packages":[{"ecosystem":"npm","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"follow-redirects","purl":null,"source":"GHSA-r4q5-vmmm-2653"},{"ecosystem":"npm","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"follow-redirects","purl":"pkg:npm/follow-redirects","source":"GHSA-r4q5-vmmm-2653"}],"prev":{"headline":"OpenTelemetry dotnet: Excessive memory allocation when parsing OpenTelemetry propagation headers","id":"CVE-2026-40894"},"products":["follow-redirects"],"published":"2026-04-21","related":[{"cvss_score":8,"headline":"Exposure of Private Personal Information to an Unauthorized Actor in follow-redirects/follow-redirects","id":"CVE-2022-0155","kev_date_added":null,"published":"2022-01-10"},{"cvss_score":6.5,"headline":"Proxy-Authorization header kept across hosts in follow-redirects","id":"CVE-2024-28849","kev_date_added":null,"published":"2024-03-14"},{"cvss_score":2.6,"headline":"Improper Removal of Sensitive Information Before Storage or Transfer in follow-redirects/follow-redirects","id":"CVE-2022-0536","kev_date_added":null,"published":"2022-02-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-10","vendors":["follow-redirects"]},"summary":"Attackers can steal custom authentication headers from Node.js applications when they follow cross-domain redirects, exposing sensitive API keys or tokens.","url":"https://insights.sbomify.com/CVE-2026-40895/"}