{"id":"CVE-2023-30846","summary":"typed-rest-client vulnerable to potential leak of authentication data to 3rd parties","details":"typed-rest-client is a library for Node Rest and Http Clients with typings for use with TypeScript. Users of the typed-rest-client library version 1.7.3 or lower are vulnerable to leak authentication data to 3rd parties. The flow of the vulnerability is as follows: First, send any request with `BasicCredentialHandler`, `BearerCredentialHandler` or `PersonalAccessTokenCredentialHandler`. Second, the target host may return a redirection (3xx), with a link to a second host. Third, the next request will use the credentials to authenticate with the second host, by setting the `Authorization` header. The expected behavior is that the next request will *NOT* set the `Authorization` header. The problem was fixed in version 1.8.0. There are no known workarounds.","aliases":["GHSA-558p-m34m-vpmq"],"modified":"2026-08-12T03:51:39.925855261Z","published":"2023-04-26T20:58:02.940Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30846.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-522"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30846.json"},{"type":"ADVISORY","url":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30846"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230601-0008/"},{"type":"FIX","url":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/microsoft/typed-rest-client","events":[{"introduced":"0"},{"fixed":"5fcb9c0945378d3a7463837c9716fb1f8257efe1"},{"fixed":"f9ff755631b982ee1303dfc3e3c823d0d31233e8"}],"database_specific":{"cpe":"cpe:2.3:a:microsoft:typed-rest-client:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.8.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.5.0","1.4.0","1.0.7","1.0.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30846.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}