CVE-2022-2421Socket.io-parser
Critical 9.8 No auth needed
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Oct 26, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Socket.io-parser.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | socket.io-parser |
≥ 4.0.0 < 4.0.5 |
4.0.5 |
npm install socket.io-parser@4.0.5 |
| npm | socket.io-parser |
≥ 4.1.0 < 4.2.1 |
4.2.1 |
npm install socket.io-parser@4.2.1 |
| npm | socket.io-parser |
< 3.3.3 |
3.3.3 |
npm install socket.io-parser@3.3.3 |
| npm | socket.io-parser |
≥ 3.4.0 < 3.4.2 |
3.4.2 |
npm install socket.io-parser@3.4.2 |
Per OSV / GitHub Advisories (GHSA-qm95-pgcg-qqfq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| socket | socket.io-parser | < 3.3.3 |
| socket | socket.io-parser | ≥ 3.4.0 < 3.4.2 |
| socket | socket.io-parser | ≥ 4.0.0 < 4.0.5 |
| socket | socket.io-parser | ≥ 4.1.0 < 4.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- csirt.divd.nl Third Party Advisory
- csirt.divd.nl Third Party Advisory