typed-rest-client vulnerable to potential leak of authentication data to 3rd parties
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-522.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Microsoft | typed-rest-client | before 1.8.0 | 1.8.0 | Patch available | CNA |
| — | typed-rest-client (npm) | before 1.8.0 | 1.8.0 | Patch available | GHSA-558p-m34m-vpmq |
- typed-rest-client VendorMicrosoft Affected before 1.8.0 Fixed in 1.8.0 Patch available CNA
- typed-rest-client (npm) Vendor— Affected before 1.8.0 Fixed in 1.8.0 Patch available GHSA-558p-m34m-vpmq
Remediation
- Fix · CNA typed-rest-client (microsoft) Fixed in 1.8.0
- Fix · GHSA-558p-m34m-vpmq typed-rest-client (npm) Fixed in 1.8.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-30846
- 2026-10-03 Alias added: GHSA-558p-m34m-vpmq
References
Patch 1
Advisory 2
Sources
- CVE-2023-30846 · CVE Program
- CVE-2023-30846 · NVD
- FIRST EPSS
- GHSA-558p-m34m-vpmq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences