Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. socket.io-parser
  4. ›
  5. CVE-2023-32695

CVE-2023-32695: Insufficient validation when decoding a Socket.IO packet

May 23, 2023 (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.

TypeError: Cannot convert object to primitive value
at Socket.emit (node:events:507:25)
at .../node_modules/socket.io/lib/socket.js:531:14

References

  • github.com/advisories/GHSA-cqmj-92xf-r6r9
  • github.com/socketio/socket.io-parser
  • github.com/socketio/socket.io-parser/commit/1c220ddbf45ea4b44bc8dbf6f9ae245f672ba1b9
  • github.com/socketio/socket.io-parser/commit/2dc3c92622dad113b8676be06f23b1ed46b02ced
  • github.com/socketio/socket.io-parser/commit/3b78117bf6ba7e99d7a5cfc1ba54d0477554a7f3
  • github.com/socketio/socket.io-parser/commit/ee006607495eca4ec7262ad080dd3a91439a5ba4
  • github.com/socketio/socket.io-parser/releases/tag/4.2.3
  • github.com/socketio/socket.io-parser/security/advisories/GHSA-cqmj-92xf-r6r9
  • nvd.nist.gov/vuln/detail/CVE-2023-32695

Code Behaviors & Features

Detect and mitigate CVE-2023-32695 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 3.3.4, all versions starting from 3.4.0 before 3.4.3, all versions starting from 4.0.4 before 4.2.3

Fixed versions

  • 4.2.3
  • 3.4.3
  • 3.3.4

Solution

Upgrade to versions 3.3.4, 3.4.3, 4.2.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/socket.io-parser/CVE-2023-32695.yml

Spotted a mistake? Edit the file on GitLab.

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

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