{"id":"CVE-2023-30846","state":"PUBLISHED","title":"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.","publishedAt":"2023-04-26T20:58:02.940Z","updatedAt":"2025-02-13T16:49:37.266Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["microsoft typed-rest-client"],"affected":[{"vendor":"microsoft","product":"typed-rest-client","versions":[{"version":"< 1.8.0","status":"affected"}]}],"references":["https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","https://security.netapp.com/advisory/ntap-20230601-0008/"],"weaknesses":["CWE-522"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/30xxx/CVE-2023-30846.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-30846","state":"PUBLISHED","datePublished":"2023-04-26T20:58:02.940Z","dateUpdated":"2025-02-13T16:49:37.266Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-04-18T16:13:15.880Z"},"containers":{"cna":{"title":"typed-rest-client vulnerable to potential leak of authentication data to 3rd parties","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"microsoft","product":"typed-rest-client","versions":[{"version":"< 1.8.0","status":"affected"}]}],"references":[{"url":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","name":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","name":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20230601-0008/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-522","lang":"en","description":"CWE-522: Insufficiently Protected Credentials","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-01T13:06:16.275Z"},"source":{"advisory":"GHSA-558p-m34m-vpmq","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","name":"https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","name":"https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230601-0008/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T14:37:15.464Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-31T19:17:22.651195Z","id":"CVE-2023-30846","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-31T19:17:30.446Z"}}]}}}