Skip to content

Crash via websocket message with old session #5986

Closed

Description

@lal12

Current Behavior

running
node -e "const W=require('ws');const w=new W('ws://127.0.0.1:1880/comms');w.on('open',()=>w.send(JSON.stringify({auth:'x'})))"
crashes the nodered instance immediately if no auth is setup.

I noticed it when removing the adminAuth from my config, afterwards the browser still had sessions.

Expected Behavior

not crashing

Steps To Reproduce

see above

Example flow

No response

Environment

  • Node-RED version: v5.0.8
  • Node.js version: v26.3.0
  • npm version: 11.16.0
  • Platform/OS: linux
  • Browser: nA

Activity

  1. added a commit that references this issue on Oct 13, 2026
    7964d59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions