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

- Severity: Critical 10.0 (CVSS:3.1, scored by DIVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.44%, higher than 73% of CVEs (2026-12-01)
- Published: 2022-10-25T00:00:00.000Z
- Modified: 2026-06-17T04:41:51.947Z
- Also known as: GHSA-qm95-pgcg-qqfq
- Weaknesses: CWE-20, CWE-89, CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: DIVD

## 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.

(As written by CVE List.)

## Affected

- Socket.io Socket.io-Parser: from 4.x before 4.2.1
- socket.io-parser (npm): from 4.0.0 before 4.0.5; from 4.1.0 before 4.2.1; before 3.3.3; from 3.4.0 before 3.4.2
- socket socket.io-parser: before 3.3.3; from 3.4.0 before 3.4.2; from 4.0.0 before 4.0.5; from 4.1.0 before 4.2.1

## Every score

- DIVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2022-2421](https://www.cve.org/CVERecord?id=CVE-2022-2421), CVE Terms of Use, modified 2025-03-11
- GitHub Advisory Database: [GHSA-qm95-pgcg-qqfq](https://github.com/advisories/GHSA-qm95-pgcg-qqfq), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-2421](https://nvd.nist.gov/vuln/detail/CVE-2022-2421), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-2421 · Whole record: https://cve.day/CVE-2022-2421.json · Rebuilt by cve.day 2026-11-25T22:58:16.013Z
