Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.io-3.1.1.tgz: 6 vulnerabilities (highest severity is: 10.0) #56

Open
mend-bolt-for-github bot opened this issue Jan 19, 2023 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link
Contributor

mend-bolt-for-github bot commented Jan 19, 2023

Vulnerable Library - socket.io-3.1.1.tgz

node.js realtime framework server

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

Path to dependency file: /back/package.json

Path to vulnerable library: /back/node_modules/socket.io/package.json

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (socket.io version) Remediation Possible**
CVE-2022-2421 Critical 10.0 socket.io-parser-4.0.4.tgz Transitive 3.1.2
CVE-2022-21676 High 7.5 engine.io-4.1.1.tgz Transitive 3.1.2
CVE-2024-38355 High 7.3 socket.io-3.1.1.tgz Direct 4.6.2
CVE-2023-32695 High 7.3 socket.io-parser-4.0.4.tgz Transitive 4.5.2
CVE-2022-41940 High 7.1 engine.io-4.1.1.tgz Transitive 4.5.0
CVE-2024-47764 Medium 5.3 cookie-0.4.1.tgz Transitive 4.6.2

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

Details

CVE-2022-2421

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

socket.io protocol parser

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

Path to dependency file: /front/package.json

Path to vulnerable library: /front/node_modules/socket.io-parser/package.json,/back/node_modules/socket.io-parser/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Root Library)
    • socket.io-parser-4.0.4.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

Vulnerability Details

Due to improper type validation in attachment parsing the Socket.io js library, it is possible to overwrite the _placeholder object which allows an attacker to place references to functions at arbitrary places in the resulting query object.

Publish Date: 2022-10-25

URL: CVE-2022-2421

CVSS 3 Score Details (10.0)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-qm95-pgcg-qqfq

Release Date: 2022-10-26

Fix Resolution (socket.io-parser): 4.0.5

Direct dependency fix Resolution (socket.io): 3.1.2

Step up your Open Source Security Game with Mend here

CVE-2022-21676

Vulnerable Library - engine.io-4.1.1.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.1.tgz

Path to dependency file: /back/package.json

Path to vulnerable library: /back/node_modules/engine.io/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Root Library)
    • engine.io-4.1.1.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

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 starting from version 4.0.0, including those who uses depending packages like socket.io. Versions prior to 4.0.0 are not impacted. A fix has been released for each major branch, namely 4.1.2 for the 4.x.x branch, 5.2.1 for the 5.x.x branch, and 6.1.1 for the 6.x.x branch. There is no known workaround except upgrading to a safe version.

Publish Date: 2022-01-12

URL: CVE-2022-21676

CVSS 3 Score Details (7.5)

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: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-273r-mgr4-v34f

Release Date: 2022-01-12

Fix Resolution (engine.io): 4.1.2

Direct dependency fix Resolution (socket.io): 3.1.2

Step up your Open Source Security Game with Mend here

CVE-2024-38355

Vulnerable Library - socket.io-3.1.1.tgz

node.js realtime framework server

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

Path to dependency file: /back/package.json

Path to vulnerable library: /back/node_modules/socket.io/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

Vulnerability Details

Socket.IO is an open source, real-time, bidirectional, event-based, communication framework. A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process. This issue is fixed by commit 15af22fc22 which has been included in [email protected] (released in May 2023). The fix was backported in the 2.x branch as well with commit d30630ba10. Users are advised to upgrade. Users unable to upgrade may attach a listener for the "error" event to catch these errors.

Publish Date: 2024-06-19

URL: CVE-2024-38355

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-25hc-qcg6-38wj

Release Date: 2024-06-19

Fix Resolution: 4.6.2

Step up your Open Source Security Game with Mend here

CVE-2023-32695

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

socket.io protocol parser

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

Path to dependency file: /front/package.json

Path to vulnerable library: /front/node_modules/socket.io-parser/package.json,/back/node_modules/socket.io-parser/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Root Library)
    • socket.io-parser-4.0.4.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

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.

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

Step up your Open Source Security Game with Mend here

CVE-2022-41940

Vulnerable Library - engine.io-4.1.1.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.1.tgz

Path to dependency file: /back/package.json

Path to vulnerable library: /back/node_modules/engine.io/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Root Library)
    • engine.io-4.1.1.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

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

Step up your Open Source Security Game with Mend here

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: /back/package.json

Path to vulnerable library: /back/node_modules/engine.io/node_modules/cookie/package.json

Dependency Hierarchy:

  • socket.io-3.1.1.tgz (Root Library)
    • engine.io-4.1.1.tgz
      • cookie-0.4.1.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

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): 1.0.1

Direct dependency fix Resolution (socket.io): 4.6.2

Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jan 19, 2023
@mend-bolt-for-github mend-bolt-for-github bot changed the title socket.io-3.1.1.tgz: 3 vulnerabilities (highest severity is: 9.8) socket.io-3.1.1.tgz: 4 vulnerabilities (highest severity is: 9.8) Dec 7, 2023
@mend-bolt-for-github mend-bolt-for-github bot changed the title socket.io-3.1.1.tgz: 4 vulnerabilities (highest severity is: 9.8) socket.io-3.1.1.tgz: 5 vulnerabilities (highest severity is: 9.8) Jun 22, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title socket.io-3.1.1.tgz: 5 vulnerabilities (highest severity is: 9.8) socket.io-3.1.1.tgz: 5 vulnerabilities (highest severity is: 10.0) Sep 10, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title socket.io-3.1.1.tgz: 5 vulnerabilities (highest severity is: 10.0) socket.io-3.1.1.tgz: 6 vulnerabilities (highest severity is: 10.0) Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants