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

CVE-2026-45736: ws: Uninitialized memory disclosure

May 18, 2026

The websocket.close() implementation is vulnerable to uninitialized memory disclosure when a TypedArray is passed as the reason argument.

References

  • github.com/advisories/GHSA-58qx-3vcg-4xpx
  • github.com/websockets/ws/commit/c0327ec15a54d701eb6ccefaa8bef328cfc03086
  • github.com/websockets/ws/security/advisories/GHSA-58qx-3vcg-4xpx
  • nvd.nist.gov/vuln/detail/CVE-2026-45736

Code Behaviors & Features

Detect and mitigate CVE-2026-45736 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 8.0.0 before 8.20.1

Fixed versions

  • 8.20.1

Solution

Upgrade to version 8.20.1 or above.

Impact 4.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-908: Use of Uninitialized Resource

Source file

npm/ws/CVE-2026-45736.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:50 +0000.