Skip to main content

NULL Pointer Dereference


Severity High
Score 7.5/10


The ws is an open-source WebSocket client and server for Node.js. A request with a number of headers exceeding the "server.maxHeadersCount" threshold could be used to crash a ws server. 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. This issue affects the package ws versions 2.1.0 through 5.2.3, 6.0.0 through 6.2.2, 7.0.0 through 7.5.9, and 8.0.0 through 8.17.0.

  • LOW
  • NONE
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-476 - NULL Pointer Dereference

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Advisory Timeline

  • Published