Skip to content

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.

PackageAffectedFixed inStatus
@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

ProductAffected versionsFixed 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