Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. engine.io
  4. ›
  5. CVE-2023-31125

CVE-2023-31125: engine.io Uncaught Exception vulnerability

May 3, 2023 (updated February 13, 2025)

A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process.

TypeError: Cannot read properties of undefined (reading 'handlesUpgrades')
at Server.onWebSocket (build/server.js:515:67)

This impacts all the users of the engine.io package, including those who uses depending packages like socket.io.

References

  • github.com/advisories/GHSA-q9mw-68c2-j6m5
  • github.com/socketio/engine.io
  • github.com/socketio/engine.io/commit/fc480b4f305e16fe5972cf337d055e598372dc44
  • github.com/socketio/engine.io/releases/tag/6.4.2
  • github.com/socketio/engine.io/security/advisories/GHSA-q9mw-68c2-j6m5
  • nvd.nist.gov/vuln/detail/CVE-2023-31125
  • security.netapp.com/advisory/ntap-20230622-0002

Code Behaviors & Features

Detect and mitigate CVE-2023-31125 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 5.1.0 before 6.4.2

Fixed versions

  • 6.4.2

Solution

Upgrade to version 6.4.2 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception

Source file

npm/engine.io/CVE-2023-31125.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:54 +0000.