# CVE-2022-2421: Socket.io - Improper type validation in attachment parsing

- Priority: **Prioritise**
- Reason: Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.3.3, 3.4.2, 4.0.5, 4.2.1 (CNA); fix release not confirmed
- Status: published
- Published: 2022-10-25 · Modified: 2025-03-11
- Aliases: GHSA-qm95-pgcg-qqfq
- Record: https://cvemate.com/vulnerability/CVE-2022-2421 · JSON: https://cvemate.com/vulnerability/CVE-2022-2421/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.441%, percentile 74.113%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm socket.io-parser (Npm): ≥ 4.0.0, \< 4.0.5 \| ≥ 4.1.0, \< 4.2.1 \| \< 3.3.3 \| ≥ 3.4.0, \< 3.4.2
- socket socket.io-parser: \< 3.3.3 \| ≥ 3.4.0, \< 3.4.2 \| ≥ 4.0.0, \< 4.0.5 \| ≥ 4.1.0, \< 4.2.1
- socketio socket.io-parser: ≥ 4.x, \< 4.2.1

## References

- <https://csirt.divd.nl/CVE-2022-2421>
- <https://csirt.divd.nl/DIVD-2022-00045>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2421>
- <https://github.com/socketio/socket.io-parser/commit/04d23cecafe1b859fb03e0cbf6ba3b74dff56d14>
- <https://github.com/socketio/socket.io-parser/commit/b559f050ee02bd90bd853b9823f8de7fa94a80d4>
- <https://github.com/socketio/socket.io-parser/commit/b5d0cb7dc56a0601a09b056beaeeb0e43b160050>
- <https://github.com/socketio/socket.io-parser/commit/fb21e422fc193b34347395a33e0f625bebc09983>
- <https://csirt.divd.nl/cases/DIVD-2022-00045>
- <https://csirt.divd.nl/cves/CVE-2022-2421>
- <https://github.com/socketio/socket.io-parser>

---

Data as of 2026-12-05T10:00:46.120Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
