CVE-2022-2421 json
Socket.io - Improper type validation in attachment parsing
published 2022-10-25 4 y ago modified 2026-06-17 4 mo ago also GHSA-qm95-pgcg-qqfq , EUVD-2022-7153
- cvss
- 10.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm socket.io-parser 3.3.3, 3.4.2, 4.0.5, 4.2.1
- Socket.io Socket.io-Parser 4.2.1
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | socket.io-parser | >=4.0.0, <4.0.5 >=4.1.0, <4.2.1 <3.3.3 >=3.4.0, <3.4.2 |
4.0.5 4.2.1 3.3.3 3.4.2 |
Affected products
- Socket.io Socket.io-Parser
Classification
References
-
github.com
/socketio/socket.io-parser/commit/04d23cecafe1b859fb03e0cbf6ba3b74dff56d14
web
-
github.com
/socketio/socket.io-parser/commit/b559f050ee02bd90bd853b9823f8de7fa94a80d4
web
-
github.com
/socketio/socket.io-parser/commit/b5d0cb7dc56a0601a09b056beaeeb0e43b160050
web
-
github.com
/socketio/socket.io-parser/commit/fb21e422fc193b34347395a33e0f625bebc09983
web
-
csirt.divd.nl
/CVE-2022-2421
third-party-advisory, web
-
csirt.divd.nl
/DIVD-2022-00045
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-2421
advisory
-
csirt.divd.nl
/cases/DIVD-2022-00045
web
-
csirt.divd.nl
/cves/CVE-2022-2421
web
-
github.com
/socketio/socket.io-parser
package
Sources
- CVE List CVE-2022-2421
- GitHub Advisory GHSA-qm95-pgcg-qqfq
- NVD CVE-2022-2421
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.