Path to vulnerable library: /node_modules/socket.io-client/node_modules/socket.io-parser/package.json,/node_modules/socket.io-client/node_modules/socket.io-parser/package.json
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.
CVE-2022-2421 - Critical Severity Vulnerability
Vulnerable Libraries - socket.io-parser-3.2.0.tgz, socket.io-parser-3.4.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: /frontend/package.json
Path to vulnerable library: /frontend/node_modules/socket.io/node_modules/socket.io-parser/package.json
Dependency Hierarchy: - karma-4.4.1.tgz (Root Library) - socket.io-2.1.1.tgz - :x: **socket.io-parser-3.2.0.tgz** (Vulnerable Library)
socket.io-parser-3.4.0.tgz
socket.io protocol parser
Library home page: https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.4.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/socket.io-parser/package.json
Dependency Hierarchy: - socket.io-2.3.0.tgz (Root Library) - :x: **socket.io-parser-3.4.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: /package.json
Path to vulnerable library: /node_modules/socket.io-client/node_modules/socket.io-parser/package.json,/node_modules/socket.io-client/node_modules/socket.io-parser/package.json
Dependency Hierarchy: - socket.io-client-2.3.0.tgz (Root Library) - :x: **socket.io-parser-3.3.0.tgz** (Vulnerable Library)
Found in HEAD commit: 3437ea512d73ad9cae18d692c18facdeea1aa2bc
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 (karma): 5.0.8
Fix Resolution (socket.io-parser): 3.3.3
Direct dependency fix Resolution (socket.io): 2.4.0
Fix Resolution (socket.io-parser): 3.3.3
Direct dependency fix Resolution (socket.io-client): 2.3.1
Step up your Open Source Security Game with Mend here