Skip to content

doc: clarify EventEmitter error handling in threat model#61701

Open
mcollina wants to merge 1 commit intonodejs:mainfrom
mcollina:security-eventemitter-error-handlers
Open

doc: clarify EventEmitter error handling in threat model#61701
mcollina wants to merge 1 commit intonodejs:mainfrom
mcollina:security-eventemitter-error-handlers

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented Feb 5, 2026

Summary

  • Add documentation to SECURITY.md clarifying that applications must attach 'error' handlers to EventEmitters
  • Specify that this includes HTTP streams and other Node.js core streams
  • Clarify that crashes from missing error handlers are not considered DoS vulnerabilities

Test plan

  • Documentation-only change, no tests needed

Add documentation explaining that applications are expected to attach
'error' event handlers to EventEmitters that can emit errors, including
HTTP streams. Crashes resulting from missing error handlers are not
considered denial-of-service vulnerabilities in Node.js.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Feb 5, 2026
@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants