CVE-2022-2421
CRITICAL 9.8CVSS 3.1Insufficient validation when decoding a Socket.IO packet
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.
- Published
- 26 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- csirt@divd.nl
- NVD status
- Analyzed
- Weakness
- CWE-1287CWE-20CWE-89
- Also known as
- GHSA-qm95-pgcg-qqfq
- Sources
- NVDJSONOSV GHSA-qm95-pgcg-qqfqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | csirt@divd.nl (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | socket | socket.io-parsercpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:* |
< 3.3.3 | 3.3.3 |
| NVD | socket | socket.io-parsercpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:* |
>= 3.4.0, < 3.4.2 | 3.4.2 |
| NVD | socket | socket.io-parsercpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.0.5 | 4.0.5 |
| NVD | socket | socket.io-parsercpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:* |
>= 4.1.0, < 4.2.1 | 4.2.1 |
| OSV | npm | socket.io-parser | >= 4.0.0, < 4.0.5 | 4.0.5 |
| OSV | npm | socket.io-parser | >= 4.1.0, < 4.2.1 | 4.2.1 |
| OSV | npm | socket.io-parser | < 3.3.3 | 3.3.3 |
| OSV | npm | socket.io-parser | >= 3.4.0, < 3.4.2 | 3.4.2 |
References
- https://csirt.divd.nl/CVE-2022-2421 · Third Party Advisory, WEB
- https://csirt.divd.nl/DIVD-2022-00045 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-2421 · ADVISORY
- https://github.com/socketio/socket.io-parser/commit/04d23cecafe1b859fb03e0cbf6ba3b74dff56d14 · WEB
- https://github.com/socketio/socket.io-parser/commit/b559f050ee02bd90bd853b9823f8de7fa94a80d4 · WEB
- https://github.com/socketio/socket.io-parser/commit/b5d0cb7dc56a0601a09b056beaeeb0e43b160050 · WEB
- https://github.com/socketio/socket.io-parser/commit/fb21e422fc193b34347395a33e0f625bebc09983 · WEB
- https://csirt.divd.nl/cases/DIVD-2022-00045 · WEB
- https://csirt.divd.nl/cves/CVE-2022-2421 · WEB
- https://github.com/socketio/socket.io-parser · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Oct 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Oct 2022)