CVE-2023-30846

typed-rest-client vulnerable to potential leak of authentication data to 3rd parties

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.

Category

9.1
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 2.88% Top 15%
Vendor Advisory github.com
Affected: microsoft typed-rest-client
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-30846?
CVE-2023-30846 has been scored as a critical severity vulnerability.
How to fix CVE-2023-30846?
To fix CVE-2023-30846, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-30846 being actively exploited in the wild?
It is possible that CVE-2023-30846 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~3% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-30846?
CVE-2023-30846 affects microsoft typed-rest-client.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.