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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | socket.io-parser | 4.0.5 | GHSA-qm95-pgcg-qqfq |
| npm | socket.io-parser | 4.2.1 | GHSA-qm95-pgcg-qqfq |
| npm | socket.io-parser | 3.3.3 | GHSA-qm95-pgcg-qqfq |
| npm | socket.io-parser | 3.4.2 | GHSA-qm95-pgcg-qqfq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://csirt.divd.nl/CVE-2022-2421 third-party-advisory
- https://csirt.divd.nl/DIVD-2022-00045 third-party-advisory