CVE-2022-2421: socket socket.io-parser SQL Injection
CVSS: 10.0v3.1CriticalAnalyzed
AliasesGHSA-qm95-pgcg-qqfq
Published 25-10-2022Last modified 11-03-2025
Vulnerability summary
CVE-2022-2421 is a critical (CVSS 10.0) SQL Injection vulnerability in socket socket.io-parser. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 69.3% of scored vulnerabilities.
CVSS score
10.0/10
010
Critical · v3.1 (CVE.org)EPSS score
1.27%
0%100%
Low · +0.05 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 25-10-2022PublishedVulnerability first disclosed.
- 11-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 versionCritical 10.0Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HSources3 sources · 9.8–10.0
- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
+0.05 pp
From 1.22% on 20-09-2026
20-09-202620-10-2026
EPSS score1.27%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- socket.io-parser≥ 4.0.0, < 4.0.5 | ≥ 4.1.0, < 4.2.1 | < 3.3.3 | ≥ 3.4.0, < 3.4.2
Socket1 product
- socket.io-parser< 3.3.3 | ≥ 3.4.0, < 3.4.2 | ≥ 4.0.0, < 4.0.5 | ≥ 4.1.0, < 4.2.1
Socketio1 product
- socket.io-parser≥ 4.x, < 4.2.1
3 vendors · 3 products