{"id":"CVE-2023-30846","published":"2023-04-26T20:58:02Z","modified":"2025-02-13T16:49:37Z","title":"typed-rest-client vulnerable to potential leak of authentication data to 3rd parties","vendor":"Microsoft","product":"typed-rest-client","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02224,"percentile":0.8314,"provenance":"source"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"references":[{"url":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20230601-0008/","tags":[]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":16.63},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"typed-rest-client","versions":["< 1.8.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-01-31T19:17:22.651195Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"typed-rest-client","vulnerableRanges":["<1.8.0"],"patched":["1.8.0"],"from":["GHSA-558p-m34m-vpmq"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-1200","exploited":false,"provenance":"source"}}