{"id":"CVE-2023-30846","aliases":["CVE-2023-30846","GHSA-558p-m34m-vpmq"],"related":[],"kind":"vulnerability","state":"published","title":"typed-rest-client vulnerable to potential leak of authentication data to 3rd parties","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nUsers of typed-rest-client library version 1.7.3 or lower are vulnerable to leak authentication data to 3rd parties. \n\nThe flow of the vulnerability is as follows:\n\n1. Send any request with `BasicCredentialHandler`, `BearerCredentialHandler` or `PersonalAccessTokenCredentialHandler` \n2. The target host may return a redirection (3xx), with a link to a second host.\n3. The next request will use the credentials to authenticate with the second host, by setting the `Authorization` header.\n\nThe expected behavior is that the next request will *NOT* set the `Authorization` header.\n\n\n### Patches\nThe problem was fixed on April 1st 2020.\n\n\n### Workarounds\nThere is no workaround.\n\n### References\nThis is similar to the following issues in nature:\n1. [HTTP authentication leak in redirects](https://curl.haxx.se/docs/CVE-2018-1000007.html) - I used the same solution as CURL did.\n2. [CVE-2018-1000007](https://nvd.nist.gov/vuln/detail/CVE-2018-1000007).","format":"markdown","source":"ghsa"}],"published":"2023-04-26T20:58:02.940Z","modified":"2026-09-10T03:49:53.370Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-522"],"affected":[{"ranges":[{"version":"< 1.8.0","status":"affected"}],"vendor":"microsoft","product":"typed-rest-client","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.0"}],"ecosystem":"npm","package":"typed-rest-client","purl":"pkg:npm/typed-rest-client","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.8.0"}],"vendor":"microsoft","product":"typed-rest-client","cpe":"cpe:2.3:a:microsoft:typed-rest-client:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230601-0008/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30846","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/typed-rest-client/pull/207","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/typed-rest-client","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230601-0008","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-01-31T19:17:22.651Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-30846","url":"https://www.cve.org/CVERecord?id=CVE-2023-30846","licence":"CVE Terms of Use","modified":"2025-02-13T16:49:37.266Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-558p-m34m-vpmq","url":"https://github.com/advisories/GHSA-558p-m34m-vpmq","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:53.370Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-30846","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30846","licence":"Public domain","modified":"2026-06-17T05:55:45.680Z"}],"updatedAt":"2026-11-25T22:58:23.770Z","epss":{"score":0.02224,"percentile":0.83216,"date":"2026-12-01T12:00:22.000Z"}}