Live threats

All CVEs / Microsoft

CVE-2023-30846Microsoft Typed-rest-client

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Apr 26, 2023
Updated
Jun 17, 2026
Category
Application · Windows
Weakness (CWE)
CWE-522
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Typed-rest-client.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm typed-rest-client < 1.8.0 1.8.0 npm install typed-rest-client@1.8.0

Per OSV / GitHub Advisories (GHSA-558p-m34m-vpmq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
microsofttyped-rest-client< 1.8.0

Official sources

References

Links published by the sources. Open them with care.