CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2024-37890

High
Published: Translated: NVD NIST

Summary

Podatność w bibliotece ws, będącej klientem i serwerem WebSocket dla Node.js, pozwala na zablokowanie serwera poprzez wysłanie żądania z liczbą nagłówków przekraczającą próg server.maxHeadersCount. Problem został naprawiony w wersjach [email protected] oraz wstecznie w wersjach [email protected], [email protected] i [email protected].

Risk Assessment

Organizacje korzystające z podatnych wersji ws mogą doświadczyć awarii serwera, co prowadzi do przerwy w dostępności usług. Może to wpłynąć na reputację firmy oraz zaufanie klientów.

Recommendation

Zaleca się aktualizację do wersji [email protected] lub zastosowanie poprawek w wersjach wstecznych. Dodatkowo, można ograniczyć maksymalną długość nagłówków żądań lub ustawić server.maxHeadersCount na 0, aby wyeliminować limit.

Related vulnerabilities

Original NVD description (English source)

ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in [email protected] (e55e510) and backported to [email protected] (22c2876), [email protected] (eeb76d3), and [email protected] (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS