Skip to content

socket.io-3.1.2.tgz: 3 vulnerabilities (highest severity is: 7.3) reachable #73

@dev-mend-for-github-com

Description

@dev-mend-for-github-com
Vulnerable Library - socket.io-3.1.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Found in HEAD commit: 5bd0cab999e471d7b91efdd7de70467c31d2c8cd

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (socket.io version) Remediation Possible** Reachability
CVE-2023-32695 High 7.3 socket.io-parser-4.0.5.tgz Transitive 4.5.2

Reachable

CVE-2022-41940 High 7.1 engine.io-4.1.2.tgz Transitive 4.5.0

Reachable

CVE-2024-47764 Medium 5.3 cookie-0.4.1.tgz Transitive 4.8.0

Unreachable

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2023-32695

Vulnerable Library - socket.io-parser-4.0.5.tgz

socket.io protocol parser

Library home page: https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.5.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • socket.io-3.1.2.tgz (Root Library)
    • socket.io-parser-4.0.5.tgz (Vulnerable Library)

Found in HEAD commit: 5bd0cab999e471d7b91efdd7de70467c31d2c8cd

Found in base branch: main

Reachability Analysis

This vulnerability is potentially reachable

juice-shop-17.0.0/lib/startup/registerWebsocketEvents.ts (Application)
  -> socket.io-3.1.2/dist/index.js (Extension)
   -> ❌ socket.io-parser-4.0.5/dist/index.js (Vulnerable Component)

Vulnerability Details

socket.io parser is a socket.io encoder and decoder written in JavaScript complying with version 5 of socket.io-protocol. A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process. A patch has been released in version 4.2.3.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2023-05-27

URL: CVE-2023-32695

CVSS 3 Score Details (7.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-cqmj-92xf-r6r9

Release Date: 2023-05-27

Fix Resolution (socket.io-parser): 4.2.3

Direct dependency fix Resolution (socket.io): 4.5.2

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2022-41940

Vulnerable Library - engine.io-4.1.2.tgz

The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server

Library home page: https://registry.npmjs.org/engine.io/-/engine.io-4.1.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • socket.io-3.1.2.tgz (Root Library)
    • engine.io-4.1.2.tgz (Vulnerable Library)

Found in HEAD commit: 5bd0cab999e471d7b91efdd7de70467c31d2c8cd

Found in base branch: main

Reachability Analysis

This vulnerability is potentially reachable

juice-shop-17.0.0/lib/startup/registerWebsocketEvents.ts (Application)
  -> socket.io-3.1.2/dist/index.js (Extension)
   -> engine.io-4.1.2/lib/engine.io.js (Extension)
    -> ❌ engine.io-4.1.2/lib/server.js (Vulnerable Component)

Vulnerability Details

Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process. This impacts all the users of the engine.io package, including those who uses depending packages like socket.io. There is no known workaround except upgrading to a safe version. There are patches for this issue released in versions 3.6.1 and 6.2.1.

Publish Date: 2022-11-22

URL: CVE-2022-41940

CVSS 3 Score Details (7.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: Low
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-r7qp-cfhv-p84w

Release Date: 2022-11-22

Fix Resolution (engine.io): 6.2.1

Direct dependency fix Resolution (socket.io): 4.5.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-47764

Vulnerable Library - cookie-0.4.1.tgz

HTTP server cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • socket.io-3.1.2.tgz (Root Library)
    • engine.io-4.1.2.tgz
      • cookie-0.4.1.tgz (Vulnerable Library)

Found in HEAD commit: 5bd0cab999e471d7b91efdd7de70467c31d2c8cd

Found in base branch: main

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Publish Date: 2024-10-04

URL: CVE-2024-47764

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-pxg6-pf52-xh8x

Release Date: 2024-10-04

Fix Resolution (cookie): 0.7.0

Direct dependency fix Resolution (socket.io): 4.8.0

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

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