{"id":"GHSA-cxjh-pqwp-8mfp","revision":"3ca1ad3286754884acca5e8425049a00","records":[{"revision":"3ca1ad3286754884acca5e8425049a00","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-cxjh-pqwp-8mfp","aliases":["CVE-2024-28849"],"title":"follow-redirects' Proxy-Authorization header kept across hosts","description":"When using [axios](https://github.com/axios/axios), its dependency follow-redirects only clears authorization header during cross-domain redirect, but allows the proxy-authentication header which contains credentials too.\n\n## Steps To Reproduce & PoC\n\nTest code:\n\n```js\nconst axios = require('axios');\n\naxios.get('http://127.0.0.1:10081/', {\n headers: {\n 'AuThorization': 'Rear Test',\n 'ProXy-AuthoriZation': 'Rear Test',\n 'coOkie': 't=1'\n }\n})\n .then((response) => {\n console.log(response);\n })\n```\n\nWhen I meet the cross-domain redirect, the sensitive headers like authorization and cookie are cleared, but proxy-authentication header is kept.\n\n## Impact\n\nThis vulnerability may lead to credentials leak.\n\n## Recommendations\n\nRemove proxy-authentication header during cross-domain redirect\n\n### Recommended Patch\n\n[follow-redirects/index.js:464](https://github.com/follow-redirects/follow-redirects/commit/c4f847f85176991f95ab9c88af63b1294de8649b)\n\n```diff\n- removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);\n+ removeMatchingHeaders(/^(?:authorization|proxy-authorization|cookie)$/i, this._options.headers);\n```","state":0,"publishedAt":"2024-03-14T17:19:42+00:00","modifiedAt":"2026-09-10T03:50:10.2495266+00:00","affected":[{"ecosystem":"npm","name":"follow-redirects","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.15.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-cxjh-pqwp-8mfp","https://nvd.nist.gov/vuln/detail/CVE-2024-28849","https://github.com/psf/requests/issues/1885","https://github.com/follow-redirects/follow-redirects/commit/c4f847f85176991f95ab9c88af63b1294de8649b","https://hackerone.com/reports/2390009","https://fetch.spec.whatwg.org/#authentication-entries","https://github.com/follow-redirects/follow-redirects","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOIF4EPQUCKDBEVTGRQDZ3CGTYQHPO7Z"],"sourceUrl":"https://github.com/advisories/GHSA-cxjh-pqwp-8mfp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-cxjh-pqwp-8mfp","identifiers":["GHSA-cxjh-pqwp-8mfp","CVE-2024-28849"]},"retained":false,"historicalAffected":[]}],"coverage":[]}