Lookup for vulnerable packages by Package URL.

Purlpkg:npm/follow-redirects@1.9.0
Typenpm
Namespace
Namefollow-redirects
Version1.9.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version1.16.0
Latest_non_vulnerable_version1.16.0
Affected_by_vulnerabilities
0
url VCID-d664-m193-b3c2
vulnerability_id VCID-d664-m193-b3c2
summary
Follow Redirects improperly handles URLs in the url.parse() function
Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname. An attacker could exploit this weakness to redirect traffic to a malicious site, potentially leading to information disclosure, phishing attacks, or other security breaches.
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-26159.json
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-26159.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2023-26159
reference_id
reference_type
scores
0
value 0.00101
scoring_system epss
scoring_elements 0.27289
published_at 2026-06-09T12:55:00Z
1
value 0.00103
scoring_system epss
scoring_elements 0.2783
published_at 2026-06-04T12:55:00Z
2
value 0.00103
scoring_system epss
scoring_elements 0.27757
published_at 2026-06-08T12:55:00Z
3
value 0.00103
scoring_system epss
scoring_elements 0.27807
published_at 2026-06-07T12:55:00Z
4
value 0.00103
scoring_system epss
scoring_elements 0.27845
published_at 2026-06-06T12:55:00Z
5
value 0.00103
scoring_system epss
scoring_elements 0.27897
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2023-26159
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-26159
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-26159
3
reference_url https://github.com/follow-redirects/follow-redirects
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects
4
reference_url https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
5
reference_url https://github.com/follow-redirects/follow-redirects/issues/235
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-01-09T18:34:28Z/
url https://github.com/follow-redirects/follow-redirects/issues/235
6
reference_url https://github.com/follow-redirects/follow-redirects/pull/236
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-01-09T18:34:28Z/
url https://github.com/follow-redirects/follow-redirects/pull/236
7
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
8
reference_url https://security.netapp.com/advisory/ntap-20241108-0002
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://security.netapp.com/advisory/ntap-20241108-0002
9
reference_url https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-01-09T18:34:28Z/
url https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
10
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059926
reference_id 1059926
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059926
11
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2256413
reference_id 2256413
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2256413
12
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-26159
reference_id CVE-2023-26159
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2023-26159
13
reference_url https://github.com/advisories/GHSA-jchw-25xp-jwwc
reference_id GHSA-jchw-25xp-jwwc
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-jchw-25xp-jwwc
14
reference_url https://access.redhat.com/errata/RHSA-2023:7198
reference_id RHSA-2023:7198
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:7198
15
reference_url https://access.redhat.com/errata/RHSA-2024:0271
reference_id RHSA-2024:0271
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:0271
16
reference_url https://access.redhat.com/errata/RHSA-2024:0720
reference_id RHSA-2024:0720
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:0720
17
reference_url https://access.redhat.com/errata/RHSA-2024:0853
reference_id RHSA-2024:0853
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:0853
18
reference_url https://access.redhat.com/errata/RHSA-2024:0998
reference_id RHSA-2024:0998
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:0998
19
reference_url https://access.redhat.com/errata/RHSA-2024:1027
reference_id RHSA-2024:1027
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1027
20
reference_url https://access.redhat.com/errata/RHSA-2024:1383
reference_id RHSA-2024:1383
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1383
21
reference_url https://access.redhat.com/errata/RHSA-2024:1946
reference_id RHSA-2024:1946
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1946
22
reference_url https://access.redhat.com/errata/RHSA-2024:3314
reference_id RHSA-2024:3314
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3314
23
reference_url https://access.redhat.com/errata/RHSA-2024:3316
reference_id RHSA-2024:3316
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3316
24
reference_url https://access.redhat.com/errata/RHSA-2025:1609
reference_id RHSA-2025:1609
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:1609
25
reference_url https://usn.ubuntu.com/8217-1/
reference_id USN-8217-1
reference_type
scores
url https://usn.ubuntu.com/8217-1/
26
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM/
reference_id ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
reference_type
scores
0
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
1
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-01-09T18:34:28Z/
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM/
fixed_packages
0
url pkg:npm/follow-redirects@1.15.4
purl pkg:npm/follow-redirects@1.15.4
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-hrqv-pxww-3kgt
1
vulnerability VCID-q9ke-8tks-duhr
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.15.4
aliases CVE-2023-26159, GHSA-jchw-25xp-jwwc
risk_score 3.3
exploitability 0.5
weighted_severity 6.6
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-d664-m193-b3c2
1
url VCID-hrqv-pxww-3kgt
vulnerability_id VCID-hrqv-pxww-3kgt
summary
follow-redirects' Proxy-Authorization header kept across hosts
When using axios, its dependency library follow-redirects only clears authorization header during cross-domain redirect, but allows the proxy-authentication header which contains credentials too.

Steps To Reproduce & PoC

axios Test Code

const axios = require('axios');

axios.get('http://127.0.0.1:10081/',{
    headers: {
        'AuThorization': 'Rear Test',
        'ProXy-AuthoriZation': 'Rear Test',
        'coOkie': 't=1'
    }
    }).then(function (response) {
        console.log(response);
})
When I meet the cross-domain redirect, the sensitive headers like authorization and cookie are cleared, but proxy-authentication header is kept.

Request sent by axios

image-20240314130755052.png
Request sent by follow-redirects after redirectimage-20240314130809838.png

Impact

This vulnerability may lead to credentials leak.

Recommendations

Remove proxy-authentication header during cross-domain redirect
Recommended Patch

follow-redirects/index.js:464

removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
change to

removeMatchingHeaders(/^(?:authorization|proxy-authorization|cookie)$/i, this._options.headers);
Ref

https://fetch.spec.whatwg.org/#authentication-entries
https://hackerone.com/reports/2390009
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-28849.json
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-28849.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2024-28849
reference_id
reference_type
scores
0
value 0.01077
scoring_system epss
scoring_elements 0.78179
published_at 2026-06-09T12:55:00Z
1
value 0.01077
scoring_system epss
scoring_elements 0.78174
published_at 2026-06-05T12:55:00Z
2
value 0.01077
scoring_system epss
scoring_elements 0.78182
published_at 2026-06-06T12:55:00Z
3
value 0.01077
scoring_system epss
scoring_elements 0.78173
published_at 2026-06-07T12:55:00Z
4
value 0.01077
scoring_system epss
scoring_elements 0.78161
published_at 2026-06-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2024-28849
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28849
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28849
3
reference_url https://fetch.spec.whatwg.org/#authentication-entries
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://fetch.spec.whatwg.org/#authentication-entries
4
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
5
reference_url https://github.com/follow-redirects/follow-redirects
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects
6
reference_url https://github.com/follow-redirects/follow-redirects/commit/c4f847f85176991f95ab9c88af63b1294de8649b
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://github.com/follow-redirects/follow-redirects/commit/c4f847f85176991f95ab9c88af63b1294de8649b
7
reference_url https://github.com/psf/requests/issues/1885
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://github.com/psf/requests/issues/1885
8
reference_url https://hackerone.com/reports/2390009
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://hackerone.com/reports/2390009
9
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z
10
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066971
reference_id 1066971
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066971
11
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2269576
reference_id 2269576
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2269576
12
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-28849
reference_id CVE-2024-28849
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2024-28849
13
reference_url https://github.com/advisories/GHSA-cxjh-pqwp-8mfp
reference_id GHSA-cxjh-pqwp-8mfp
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-cxjh-pqwp-8mfp
14
reference_url https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-cxjh-pqwp-8mfp
reference_id GHSA-cxjh-pqwp-8mfp
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-cxjh-pqwp-8mfp
15
reference_url https://access.redhat.com/errata/RHSA-2024:1474
reference_id RHSA-2024:1474
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1474
16
reference_url https://access.redhat.com/errata/RHSA-2024:1946
reference_id RHSA-2024:1946
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1946
17
reference_url https://access.redhat.com/errata/RHSA-2024:3316
reference_id RHSA-2024:3316
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3316
18
reference_url https://access.redhat.com/errata/RHSA-2024:3550
reference_id RHSA-2024:3550
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3550
19
reference_url https://access.redhat.com/errata/RHSA-2024:3781
reference_id RHSA-2024:3781
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3781
20
reference_url https://access.redhat.com/errata/RHSA-2024:3868
reference_id RHSA-2024:3868
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3868
21
reference_url https://access.redhat.com/errata/RHSA-2024:3920
reference_id RHSA-2024:3920
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3920
22
reference_url https://access.redhat.com/errata/RHSA-2024:4836
reference_id RHSA-2024:4836
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:4836
23
reference_url https://access.redhat.com/errata/RHSA-2024:8677
reference_id RHSA-2024:8677
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:8677
24
reference_url https://access.redhat.com/errata/RHSA-2025:1609
reference_id RHSA-2025:1609
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:1609
25
reference_url https://usn.ubuntu.com/8217-1/
reference_id USN-8217-1
reference_type
scores
url https://usn.ubuntu.com/8217-1/
26
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z/
reference_id VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-08-02T19:45:25Z/
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z/
fixed_packages
0
url pkg:npm/follow-redirects@1.15.6
purl pkg:npm/follow-redirects@1.15.6
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-q9ke-8tks-duhr
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.15.6
aliases CVE-2024-28849, GHSA-cxjh-pqwp-8mfp
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-hrqv-pxww-3kgt
2
url VCID-q9ke-8tks-duhr
vulnerability_id VCID-q9ke-8tks-duhr
summary
follow-redirects leaks Custom Authentication Headers to Cross-Domain Redirect Targets
## Summary

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:469-476). Any custom authentication header (e.g., `X-API-Key`, `X-Auth-Token`, `Api-Key`, `Token`) is forwarded verbatim to the redirect target.

Since `follow-redirects` is the redirect-handling dependency for **axios** (105K+ stars), this vulnerability affects the entire axios ecosystem.

## Affected Code

`index.js`, lines 469-476:

```javascript
if (redirectUrl.protocol !== currentUrlParts.protocol &&
   redirectUrl.protocol !== "https:" ||
   redirectUrl.host !== currentHost &&
   !isSubdomain(redirectUrl.host, currentHost)) {
  removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
}
```

The regex only matches `authorization`, `proxy-authorization`, and `cookie`. Custom headers like `X-API-Key` are not matched.

## Attack Scenario

1. App uses axios with custom auth header: `headers: { 'X-API-Key': 'sk-live-secret123' }`
2. Server returns `302 Location: https://evil.com/steal`
3. follow-redirects sends `X-API-Key: sk-live-secret123` to `evil.com`
4. Attacker captures the API key

## Impact

Any custom auth header set via axios leaks on cross-domain redirect. Extremely common pattern. Affects all axios users in Node.js.

## Suggested Fix

Add a `sensitiveHeaders` option that users can extend, or strip ALL non-standard headers on cross-domain redirect.

## Disclosure

Source code review, manually verified. Found 2026-03-20.
references
0
reference_url https://github.com/follow-redirects/follow-redirects
reference_id
reference_type
scores
0
value 6.9
scoring_system cvssv4
scoring_elements 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
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects
1
reference_url https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9
reference_id
reference_type
scores
0
value 6.9
scoring_system cvssv4
scoring_elements 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
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9
2
reference_url https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
reference_id
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value 6.9
scoring_system cvssv4
scoring_elements 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
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
3
reference_url https://github.com/advisories/GHSA-r4q5-vmmm-2653
reference_id GHSA-r4q5-vmmm-2653
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-r4q5-vmmm-2653
fixed_packages
0
url pkg:npm/follow-redirects@1.16.0
purl pkg:npm/follow-redirects@1.16.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.16.0
aliases GHSA-r4q5-vmmm-2653
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-q9ke-8tks-duhr
3
url VCID-sq2a-nwfj-6khf
vulnerability_id VCID-sq2a-nwfj-6khf
summary Exposure of Sensitive Information to an Unauthorized Actor in NPM follow-redirects prior to 1.14.8.
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-0536.json
reference_id
reference_type
scores
0
value 5.9
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-0536.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-0536
reference_id
reference_type
scores
0
value 0.00069
scoring_system epss
scoring_elements 0.2142
published_at 2026-06-09T12:55:00Z
1
value 0.00069
scoring_system epss
scoring_elements 0.2141
published_at 2026-06-08T12:55:00Z
2
value 0.00069
scoring_system epss
scoring_elements 0.2147
published_at 2026-06-07T12:55:00Z
3
value 0.00069
scoring_system epss
scoring_elements 0.21517
published_at 2026-06-06T12:55:00Z
4
value 0.00069
scoring_system epss
scoring_elements 0.21449
published_at 2026-06-04T12:55:00Z
5
value 0.00069
scoring_system epss
scoring_elements 0.2153
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-0536
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0536
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0536
3
reference_url https://github.com/follow-redirects/follow-redirects
reference_id
reference_type
scores
0
value 5.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects
4
reference_url https://github.com/follow-redirects/follow-redirects/commit/62e546a99c07c3ee5e4e0718c84a6ca127c5c445
reference_id
reference_type
scores
0
value 5.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects/commit/62e546a99c07c3ee5e4e0718c84a6ca127c5c445
5
reference_url https://huntr.dev/bounties/7cf2bf90-52da-4d59-8028-a73b132de0db
reference_id
reference_type
scores
0
value 5.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://huntr.dev/bounties/7cf2bf90-52da-4d59-8028-a73b132de0db
6
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2053259
reference_id 2053259
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2053259
7
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-0536
reference_id CVE-2022-0536
reference_type
scores
0
value 5.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-0536
8
reference_url https://github.com/advisories/GHSA-pw2r-vq6v-hr8c
reference_id GHSA-pw2r-vq6v-hr8c
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-pw2r-vq6v-hr8c
9
reference_url https://access.redhat.com/errata/RHSA-2022:1739
reference_id RHSA-2022:1739
reference_type
scores
url https://access.redhat.com/errata/RHSA-2022:1739
10
reference_url https://access.redhat.com/errata/RHSA-2022:5483
reference_id RHSA-2022:5483
reference_type
scores
url https://access.redhat.com/errata/RHSA-2022:5483
11
reference_url https://access.redhat.com/errata/RHSA-2022:6156
reference_id RHSA-2022:6156
reference_type
scores
url https://access.redhat.com/errata/RHSA-2022:6156
12
reference_url https://access.redhat.com/errata/RHSA-2022:6835
reference_id RHSA-2022:6835
reference_type
scores
url https://access.redhat.com/errata/RHSA-2022:6835
13
reference_url https://access.redhat.com/errata/RHSA-2025:21368
reference_id RHSA-2025:21368
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21368
14
reference_url https://access.redhat.com/errata/RHSA-2025:21378
reference_id RHSA-2025:21378
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21378
15
reference_url https://access.redhat.com/errata/RHSA-2025:21704
reference_id RHSA-2025:21704
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21704
16
reference_url https://access.redhat.com/errata/RHSA-2025:22415
reference_id RHSA-2025:22415
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22415
17
reference_url https://access.redhat.com/errata/RHSA-2025:22416
reference_id RHSA-2025:22416
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22416
18
reference_url https://access.redhat.com/errata/RHSA-2025:22418
reference_id RHSA-2025:22418
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22418
19
reference_url https://access.redhat.com/errata/RHSA-2025:22420
reference_id RHSA-2025:22420
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22420
20
reference_url https://usn.ubuntu.com/8217-1/
reference_id USN-8217-1
reference_type
scores
url https://usn.ubuntu.com/8217-1/
fixed_packages
0
url pkg:npm/follow-redirects@1.14.8
purl pkg:npm/follow-redirects@1.14.8
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-d664-m193-b3c2
1
vulnerability VCID-hrqv-pxww-3kgt
2
vulnerability VCID-q9ke-8tks-duhr
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.14.8
aliases CVE-2022-0536, GHSA-pw2r-vq6v-hr8c
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-sq2a-nwfj-6khf
4
url VCID-tvq9-hf97-93at
vulnerability_id VCID-tvq9-hf97-93at
summary follow-redirects is vulnerable to Exposure of Private Personal Information to an Unauthorized Actor
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-0155.json
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-0155.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-0155
reference_id
reference_type
scores
0
value 0.01302
scoring_system epss
scoring_elements 0.8013
published_at 2026-06-09T12:55:00Z
1
value 0.01302
scoring_system epss
scoring_elements 0.80092
published_at 2026-06-04T12:55:00Z
2
value 0.01302
scoring_system epss
scoring_elements 0.80118
published_at 2026-06-05T12:55:00Z
3
value 0.01302
scoring_system epss
scoring_elements 0.80123
published_at 2026-06-06T12:55:00Z
4
value 0.01302
scoring_system epss
scoring_elements 0.80117
published_at 2026-06-07T12:55:00Z
5
value 0.01302
scoring_system epss
scoring_elements 0.80109
published_at 2026-06-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-0155
2
reference_url https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
reference_id
reference_type
scores
0
value 8.0
scoring_system cvssv3.1
scoring_elements CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
3
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0155
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0155
4
reference_url https://github.com/follow-redirects/follow-redirects
reference_id
reference_type
scores
0
value 8.0
scoring_system cvssv3.1
scoring_elements CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects
5
reference_url https://github.com/follow-redirects/follow-redirects/commit/8b347cbcef7c7b72a6e9be20f5710c17d6163c22
reference_id
reference_type
scores
0
value 8.0
scoring_system cvssv3.1
scoring_elements CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/follow-redirects/follow-redirects/commit/8b347cbcef7c7b72a6e9be20f5710c17d6163c22
6
reference_url https://huntr.dev/bounties/fc524e4b-ebb6-427d-ab67-a64181020406
reference_id
reference_type
scores
0
value 8.0
scoring_system cvssv3.1
scoring_elements CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://huntr.dev/bounties/fc524e4b-ebb6-427d-ab67-a64181020406
7
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2044556
reference_id 2044556
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2044556
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-0155
reference_id CVE-2022-0155
reference_type
scores
0
value 8.0
scoring_system cvssv3.1
scoring_elements CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-0155
9
reference_url https://github.com/advisories/GHSA-74fj-2j2h-c42q
reference_id GHSA-74fj-2j2h-c42q
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-74fj-2j2h-c42q
10
reference_url https://access.redhat.com/errata/RHSA-2022:8502
reference_id RHSA-2022:8502
reference_type
scores
url https://access.redhat.com/errata/RHSA-2022:8502
11
reference_url https://access.redhat.com/errata/RHSA-2025:21368
reference_id RHSA-2025:21368
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21368
12
reference_url https://access.redhat.com/errata/RHSA-2025:21378
reference_id RHSA-2025:21378
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21378
13
reference_url https://access.redhat.com/errata/RHSA-2025:21704
reference_id RHSA-2025:21704
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:21704
14
reference_url https://access.redhat.com/errata/RHSA-2025:22415
reference_id RHSA-2025:22415
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22415
15
reference_url https://access.redhat.com/errata/RHSA-2025:22416
reference_id RHSA-2025:22416
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22416
16
reference_url https://access.redhat.com/errata/RHSA-2025:22418
reference_id RHSA-2025:22418
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22418
17
reference_url https://access.redhat.com/errata/RHSA-2025:22420
reference_id RHSA-2025:22420
reference_type
scores
url https://access.redhat.com/errata/RHSA-2025:22420
18
reference_url https://usn.ubuntu.com/8217-1/
reference_id USN-8217-1
reference_type
scores
url https://usn.ubuntu.com/8217-1/
fixed_packages
0
url pkg:npm/follow-redirects@1.14.7
purl pkg:npm/follow-redirects@1.14.7
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-d664-m193-b3c2
1
vulnerability VCID-hrqv-pxww-3kgt
2
vulnerability VCID-q9ke-8tks-duhr
3
vulnerability VCID-sq2a-nwfj-6khf
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.14.7
aliases CVE-2022-0155, GHSA-74fj-2j2h-c42q
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-tvq9-hf97-93at
Fixing_vulnerabilities
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/follow-redirects@1.9.0