iamkishan98 / E-voting-using-blockchain

Decentralized online vorting application built with blockchain
2 stars 0 forks source link

CVE-2022-2421 (Critical) detected in socket.io-parser-3.2.0.tgz, socket.io-parser-3.3.0.tgz #305

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

mend-bolt-for-github[bot] commented 10 months ago

CVE-2022-2421 - Critical Severity Vulnerability

Vulnerable Libraries - socket.io-parser-3.2.0.tgz, socket.io-parser-3.3.0.tgz

socket.io-parser-3.2.0.tgz

socket.io protocol parser

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

Path to dependency file: /E-voting-using-blockchain/evoting app/src/bower_components/bootstrap/package.json

Path to vulnerable library: /evoting app/src/bower_components/bootstrap/node_modules/socket.io-parser/package.json,/evoting app/src/bower_components/bootstrap/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - lite-server-2.4.0.tgz (Root Library) - browser-sync-2.26.5.tgz - socket.io-2.1.1.tgz - :x: **socket.io-parser-3.2.0.tgz** (Vulnerable Library)

socket.io-parser-3.3.0.tgz

socket.io protocol parser

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

Path to dependency file: /E-voting-using-blockchain/evoting app/package.json

Path to vulnerable library: /evoting app/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - lite-server-2.4.0.tgz (Root Library) - browser-sync-2.26.5.tgz - browser-sync-ui-2.26.4.tgz - socket.io-client-2.2.0.tgz - :x: **socket.io-parser-3.3.0.tgz** (Vulnerable Library)

Found in HEAD commit: 3c02898f89d78283ce791eb1b53b2b5a667681ad

Found in base branch: master

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-26

URL: CVE-2022-2421

CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - 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: https://github.com/advisories/GHSA-qm95-pgcg-qqfq

Release Date: 2022-10-26

Fix Resolution (socket.io-parser): 3.3.3

Direct dependency fix Resolution (lite-server): 2.5.0

Fix Resolution (socket.io-parser): 3.3.3

Direct dependency fix Resolution (lite-server): 2.5.0


Step up your Open Source Security Game with Mend here