CVE-2022-2421: Socket.io - Improper type validation in attachment parsing
Vulnerability summary
CVE-2022-2421 is a critical (CVSS 10.0) vulnerability in socket socket.io-parser. EPSS estimates a 1.44% chance of exploitation in the next 30 days, higher than 74.1% of scored vulnerabilities.
Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?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 version- 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.44%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 1.43% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
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