Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ws
  4. ›
  5. CVE-2024-37890

CVE-2024-37890: ws affected by a DoS when handling a request with many HTTP headers

June 17, 2024

A request with a number of headers exceeding the[server.maxHeadersCount][] threshold could be used to crash a ws server.

References

  • github.com/advisories/GHSA-3h5v-q93c-6h6q
  • github.com/websockets/ws
  • github.com/websockets/ws/commit/22c28763234aa75a7e1b76f5c01c181260d7917f
  • github.com/websockets/ws/commit/4abd8f6de4b0b65ef80b3ff081989479ed93377e
  • github.com/websockets/ws/commit/e55e5106f10fcbaac37cfa89759e4cc0d073a52c
  • github.com/websockets/ws/commit/eeb76d313e2a00dd5247ca3597bba7877d064a63
  • github.com/websockets/ws/issues/2230
  • github.com/websockets/ws/pull/2231
  • github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q
  • nvd.nist.gov/vuln/detail/CVE-2024-37890

Code Behaviors & Features

Detect and mitigate CVE-2024-37890 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 5.2.4, all versions starting from 6.0.0 before 6.2.3, all versions starting from 7.0.0 before 7.5.10, all versions starting from 8.0.0 before 8.17.1

Fixed versions

  • 5.2.4
  • 6.2.3
  • 7.5.10
  • 8.17.1

Solution

Upgrade to versions 5.2.4, 6.2.3, 7.5.10, 8.17.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

npm/ws/CVE-2024-37890.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.