Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. socket.io
  4. ›
  5. CVE-2024-38355

CVE-2024-38355: socket.io has an unhandled 'error' event

June 19, 2024 (updated November 18, 2024)

A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process.

node:events:502
throw err; // Unhandled 'error' event
^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. (undefined)
at new NodeError (node:internal/errors:405:5)
at Socket.emit (node:events:500:17)
at /myapp/node_modules/socket.io/lib/socket.js:531:14
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
code: 'ERR_UNHANDLED_ERROR',
context: undefined
}

References

  • github.com/advisories/GHSA-25hc-qcg6-38wj
  • github.com/socketio/socket.io
  • github.com/socketio/socket.io/commit/15af22fc22bc6030fcead322c106f07640336115
  • github.com/socketio/socket.io/commit/d30630ba10562bf987f4d2b42440fc41a828119c
  • github.com/socketio/socket.io/security/advisories/GHSA-25hc-qcg6-38wj
  • nvd.nist.gov/vuln/detail/CVE-2024-38355

Code Behaviors & Features

Detect and mitigate CVE-2024-38355 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 before 2.5.1, all versions starting from 3.0.0 before 4.6.2

Fixed versions

  • 2.5.1
  • 4.6.2

Solution

Upgrade to versions 2.5.1, 4.6.2 or above.

Impact 7.3 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

npm/socket.io/CVE-2024-38355.yml

Spotted a mistake? Edit the file on GitLab.

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

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