CVE-2022-2421 Socket.io - Improper type validation in attachment parsing
CriticalCVSS 9.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @socket.io Socket.io-Parser | >= 4.x, < 4.2.1 | 4.2.1 | Fixed |
| npm socket.io-parser(npm) | < 3.3.3; >= 3.4.0, < 3.4.2; >= 4.0.0, < 4.0.5; >= 4.1.0, < 4.2.1 | 3.3.3, 3.4.2, 4.0.5, 4.2.1 | Fixed |
| socket.io-parser | < 3.3.3; >= 3.4.0, < 3.4.2; >= 4.0.0, < 4.0.5; >= 4.1.0, < 4.2.1 | 3.3.3, 3.4.2, 4.0.5, 4.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm socket.io-parser(npm) | >= 4.1.0, < 4.2.1 | 4.2.1 |
| npm socket.io-parser(npm) | >= 4.0.0, < 4.0.5 | 4.0.5 |
| npm socket.io-parser(npm) | < 3.3.3 | 3.3.3 |
| npm socket.io-parser(npm) | >= 3.4.0, < 3.4.2 | 3.4.2 |
| @socket.io Socket.io-Parser | >= 4.x, < 4.2.1 | 4.2.1 |
| socket.io-parser | < 3.3.3 | 3.3.3 |
| socket.io-parser | >= 3.4.0, < 3.4.2 | 3.4.2 |
| socket.io-parser | >= 4.0.0, < 4.0.5 | 4.0.5 |
| socket.io-parser | >= 4.1.0, < 4.2.1 | 4.2.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- csirt.divd.nl
- csirt.divd.nl
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- csirt.divd.nl third-party-advisory
- csirt.divd.nl third-party-advisory
- github.com
- github.com product