{"id":"UBUNTU-CVE-2026-40895","details":"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.","modified":"2026-08-13T07:45:11.898451860Z","published":"2026-04-21T21:16:00Z","related":["USN-8632-1"],"upstream":["CVE-2026-40895"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40895"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40895"},{"type":"REPORT","url":"https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653"},{"type":"REPORT","url":"https://github.com/follow-redirects/follow-redirects/pull/284"},{"type":"REPORT","url":"https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8632-1"}],"affected":[{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.4-1ubuntu0.18.04.1~esm2"}]}],"versions":["1.2.4-1","1.2.4-1ubuntu0.18.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-follow-redirects","binary_version":"1.2.4-1ubuntu0.18.04.1~esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}},{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.4-1ubuntu0.20.04.1~esm2"}]}],"versions":["1.2.4-1","1.2.4-1ubuntu0.20.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-follow-redirects","binary_version":"1.2.4-1ubuntu0.20.04.1~esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}},{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.9+~1.14.1-1ubuntu0.1~esm2"}]}],"versions":["1.13.1-1","1.14.5-1","1.14.7+~1.13.1-1","1.14.8+~1.14.0-1","1.14.9+~1.14.1-1","1.14.9+~1.14.1-1ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"node-follow-redirects","binary_version":"1.14.9+~1.14.1-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}},{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.6+~1.14.4-1ubuntu0.1~esm1"}]}],"versions":["1.15.2+~1.14.1-1","1.15.3+~1.14.2-1","1.15.6+~1.14.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-follow-redirects","binary_version":"1.15.6+~1.14.4-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}},{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.9+~1.14.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.15.9+~1.14.4-1","binary_name":"node-follow-redirects"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}},{"package":{"name":"node-follow-redirects","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.11+~1.14.4-1ubuntu0.1~esm1"}]}],"versions":["1.15.9+~1.14.4-1","1.15.11+~1.14.4-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-follow-redirects","binary_version":"1.15.11+~1.14.4-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40895.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}