b-tomi / 100DaysOfCode

100 Days of Code - The Complete Python Pro Bootcamp for 2021: Project solutions
https://www.udemy.com/course/100-days-of-code/
European Union Public License 1.2
195 stars 141 forks source link

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

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

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

CVE-2022-2421 - Critical Severity Vulnerability

Vulnerable Libraries - socket.io-parser-3.2.0.tgz, socket.io-parser-3.3.1.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: /day60/package.json

Path to vulnerable library: /day60/package.json,/day59/package.json

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

socket.io-parser-3.3.1.tgz

socket.io protocol parser

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

Path to dependency file: /day60/package.json

Path to vulnerable library: /day60/package.json,/day59/package.json

Dependency Hierarchy: - browser-sync-2.26.13.tgz (Root Library) - browser-sync-ui-2.26.13.tgz - socket.io-client-2.3.1.tgz - :x: **socket.io-parser-3.3.1.tgz** (Vulnerable Library)

Found in HEAD commit: c88b9429eb68a85b22f0e39cac7bf20b89cb6709

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

Direct dependency fix Resolution (browser-sync): 2.26.14-y.1

Fix Resolution (socket.io-parser): 3.3.3

Direct dependency fix Resolution (browser-sync): 2.26.14-y.1


Step up your Open Source Security Game with Mend here