Vulnerability · Published Oct 25, 2022 · Assigned by DIVD

CVE-2022-2421Socket.io - Improper type validation in attachment parsing

Critical 10.0

In plain English

A critical-severity SQL injection in Socket.io-Parser from Socket.io. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)1.4%top 26.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmsocket.io-parser4.0.5GHSA-qm95-pgcg-qqfq
npmsocket.io-parser4.2.1GHSA-qm95-pgcg-qqfq
npmsocket.io-parser3.3.3GHSA-qm95-pgcg-qqfq
npmsocket.io-parser3.4.2GHSA-qm95-pgcg-qqfq

Affected products (as reported)

VendorProductVersions
Socket.io Socket.io-Parser 4.x – before 4.2.1

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References