Skip to content

Security: Bump ws dependency from 8.20.0 to 8.20.1 (CVE-2026-45736) #6116

Closed

Description

@samjoffe

Summary

The ws dependency is pinned at 8.20.0 in package.json, which is affected by CVE-2026-45736 / GHSA-58qx-3vcg-4xpx — an uninitialized memory disclosure vulnerability in websocket.close().

Details

  • Affected versions: ws >= 8.0.0, < 8.20.1
  • Patched version: ws 8.20.1
  • Severity: Moderate (CVSS 4.4)
  • CWE: CWE-908 (Use of Uninitialized Resource)

The vulnerability allows uninitialized memory to be disclosed to a remote peer when a TypedArray (e.g. Float32Array) is passed as the reason argument for websocket.close(), rather than the supported string or Buffer types.

Fix

Bump ws from 8.20.0 to 8.20.1 in package.json. This is a patch-level semver update with no breaking changes.

Environment

  • pm2 version: 7.0.1 (master) / 7.0.2 (development)
  • Node.js version: v22
  • OS: Ubuntu Linux

References

Activity

  1. Unitech commented on Jun 29, 2026

    @Unitech
    Owner

    Fixed in v7.0.3 — ws bumped 8.20.0 → 8.21.0. Note 8.20.1 is still flagged (GHSA-58qx-3vcg-4xpx uninitialized-memory disclosure, GHSA-96hv-2xvq-fx4p tiny-fragment DoS); 8.21.0 is the first fully patched release. The transitive ws@7 inside @pm2/js-api is resolved too (js-api 0.8.1), so npm audit --omit=dev is clean.

    To upgrade:

    # With npm
    npm install pm2@latest -g
    
    # Or with bun
    bun install pm2@latest -g
    
    # Then reload the daemon and restore your process list
    pm2 update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions