CVE-2023-30846 json
typed-rest-client vulnerable to potential leak of authentication data to 3rd parties
published 2023-04-26 3 y ago modified 2026-09-10 1 mo ago also GHSA-558p-m34m-vpmq , EUVD-2023-1200
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
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.
Patch / fix
- npm typed-rest-client 1.8.0
- microsoft typed-rest-client 1.8.0
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | typed-rest-client | <1.8.0 |
1.8.0 |
Affected products
- microsoft typed-rest-client
Classification
- Weakness
-
- CWE-522 Insufficiently Protected Credentials
References
-
github.com
/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8
web, patch
-
github.com
/microsoft/typed-rest-client/pull/207
web
-
github.com
/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq
web, vendor-advisory
- security.netapp.com /advisory/ntap-20230601-0008/
-
nvd.nist.gov
/vuln/detail/CVE-2023-30846
advisory
-
github.com
/microsoft/typed-rest-client
package
-
security.netapp.com
/advisory/ntap-20230601-0008
web
Sources
- CVE List CVE-2023-30846
- GitHub Advisory GHSA-558p-m34m-vpmq
- NVD CVE-2023-30846
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.