# CVE-2023-30846: typed-rest-client vulnerable to potential leak of authentication data to 3rd parties

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.22%, higher than 83% of CVEs (2026-12-01)
- Published: 2023-04-26T20:58:02.940Z
- Modified: 2026-09-10T03:49:53.370Z
- Also known as: GHSA-558p-m34m-vpmq
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- microsoft typed-rest-client: < 1.8.0; before 1.8.0
- typed-rest-client (npm): before 1.8.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq> (vendor-advisory, web)
- <https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8> (patch, web)
- <https://security.netapp.com/advisory/ntap-20230601-0008/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30846> (advisory)
- <https://github.com/microsoft/typed-rest-client/pull/207> (web)
- <https://github.com/microsoft/typed-rest-client> (package)
- <https://security.netapp.com/advisory/ntap-20230601-0008> (web)

## Sources

- CVE List: [CVE-2023-30846](https://www.cve.org/CVERecord?id=CVE-2023-30846), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-558p-m34m-vpmq](https://github.com/advisories/GHSA-558p-m34m-vpmq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-30846](https://nvd.nist.gov/vuln/detail/CVE-2023-30846), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30846 · Whole record: https://cve.day/CVE-2023-30846.json · Rebuilt by cve.day 2026-11-25T22:58:23.770Z
