shahul01 / nlk-socket-simple-demo

Chat app with auto typing - React, Socket.IO & Node
https://nlk-socket-simple-demo.vercel.app/chat
2 stars 0 forks source link

socket.io-client-4.5.4.tgz: 2 vulnerabilities (highest severity is: 7.5) #7

Open mend-bolt-for-github[bot] opened 12 months ago

mend-bolt-for-github[bot] commented 12 months ago
Vulnerable Library - socket.io-client-4.5.4.tgz

Path to dependency file: /client/package.json

Path to vulnerable library: /server/node_modules/ws/package.json,/client/node_modules/engine.io-client/node_modules/ws/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (socket.io-client version) Remediation Possible**
CVE-2024-37890 High 7.5 ws-8.2.3.tgz Transitive 4.7.0
CVE-2023-32695 High 7.3 socket.io-parser-4.2.2.tgz Transitive 4.6.0

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

Details

CVE-2024-37890 ### Vulnerable Library - ws-8.2.3.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-8.2.3.tgz

Path to dependency file: /server/package.json

Path to vulnerable library: /server/node_modules/ws/package.json,/client/node_modules/engine.io-client/node_modules/ws/package.json

Dependency Hierarchy: - socket.io-client-4.5.4.tgz (Root Library) - engine.io-client-6.2.3.tgz - :x: **ws-8.2.3.tgz** (Vulnerable Library)

Found in base branch: master

### Vulnerability Details

ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in ws@8.17.1 (e55e510) and backported to ws@7.5.10 (22c2876), ws@6.2.3 (eeb76d3), and ws@5.2.4 (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.

Publish Date: 2024-06-17

URL: CVE-2024-37890

### 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: https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q

Release Date: 2024-06-17

Fix Resolution (ws): 8.17.1

Direct dependency fix Resolution (socket.io-client): 4.7.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2023-32695 ### Vulnerable Library - socket.io-parser-4.2.2.tgz

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

Path to dependency file: /server/package.json

Path to vulnerable library: /server/node_modules/socket.io-parser/package.json,/client/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - socket.io-client-4.5.4.tgz (Root Library) - :x: **socket.io-parser-4.2.2.tgz** (Vulnerable Library)

Found in base branch: master

### 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: https://github.com/socketio/socket.io-parser/security/advisories/GHSA-cqmj-92xf-r6r9

Release Date: 2023-05-27

Fix Resolution (socket.io-parser): 4.2.3

Direct dependency fix Resolution (socket.io-client): 4.6.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)