typed-rest-client vulnerable to potential leak of authentication data to 3rd parties
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-30846
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:57 UTC · Revision 1
Source evidence
typed-rest-client vulnerable to potential leak of authentication data to 3rd parties
core-osv · Original sourcePublished 26 Apr 2023, 20:58 UTC
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.
osv:CVE-2023-30846
Complete source record
{
"id": "406af346ec378e9531956da312c4b12cb72a722085f988e625e18775cad5b8b2",
"url": "https://osv.dev/vulnerability/CVE-2023-30846",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2023-30846",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2023-30846",
"aliases": [
"CVE-2023-30846",
"GHSA-558p-m34m-vpmq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/microsoft/typed-rest-client",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5fcb9c0945378d3a7463837c9716fb1f8257efe1"
},
{
"fixed": "f9ff755631b982ee1303dfc3e3c823d0d31233e8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:microsoft:typed-rest-client:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.8.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f9ff755631b982ee1303dfc3e3c823d0d31233e8"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.5.0",
"1.4.0",
"1.0.7",
"1.0.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30846.json"
}
}
],
"modified": "2026-10-28T02:30:50.151611543Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30846.json",
"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq",
"https://nvd.nist.gov/vuln/detail/CVE-2023-30846",
"https://security.netapp.com/advisory/ntap-20230601-0008/",
"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8"
],
"provider_metadata": {
"cwe_ids": [
"CWE-522"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30846.json"
}
},
"related_cves": [
{
"value": "CVE-2023-30846",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518307,
"published_at": "2023-04-26T20:58:02.94+00:00"
}