vipinsun / blockchain-carbon-accounting

Apache License 2.0
0 stars 0 forks source link

CVE-2022-2421 (Critical) detected in socket.io-parser-4.0.4.tgz, socket.io-parser-3.3.2.tgz #178

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2022-2421 - Critical Severity Vulnerability

Vulnerable Libraries - socket.io-parser-4.0.4.tgz, socket.io-parser-3.3.2.tgz

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: /utility-emissions-channel/typescript_app/package.json

Path to vulnerable library: /utility-emissions-channel/typescript_app/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - socket.io-4.2.0.tgz (Root Library) - :x: **socket.io-parser-4.0.4.tgz** (Vulnerable Library)

socket.io-parser-3.3.2.tgz

socket.io protocol parser

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

Path to dependency file: /utility-emissions-channel/typescript_app/package.json

Path to vulnerable library: /utility-emissions-channel/typescript_app/node_modules/socket.io-client/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - serverless-2.61.0.tgz (Root Library) - components-3.17.1.tgz - platform-client-china-2.2.7.tgz - utils-china-1.1.4.tgz - socket.io-client-2.4.0.tgz - :x: **socket.io-parser-3.3.2.tgz** (Vulnerable Library)

Found in HEAD commit: d388e16464e00b9ce84df0d247029f534a429b90

Found in base branch: main

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: https://github.com/advisories/GHSA-qm95-pgcg-qqfq

Release Date: 2022-10-26

Fix Resolution (socket.io-parser): 4.0.5

Direct dependency fix Resolution (socket.io): 4.3.0

Fix Resolution (socket.io-parser): 4.0.5

Direct dependency fix Resolution (serverless): 2.62.0-62642964


Step up your Open Source Security Game with Mend here