Skip to content
OpenAdvisories
Critical · 10.0 CVE-2022-2421 EUVD-2022-7153GHSA-qm95-pgcg-qqfq

Socket.io - Improper type validation in attachment parsing

Published Oct 25, 2022 · Updated Mar 11, 2025 · 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.

Affected products

VendorProductAffectedFixed
Socket.io Socket.io-Parser 4.x – < 4.2.1 4.2.1

Affected packages

EcosystemPackageAffectedFixedRecord
npm socket.io-parser >= 4.0.0, < 4.0.5 4.0.5 GHSA-qm95-pgcg-qqfq
npm socket.io-parser >= 4.1.0, < 4.2.1 4.2.1 GHSA-qm95-pgcg-qqfq
npm socket.io-parser < 3.3.3 3.3.3 GHSA-qm95-pgcg-qqfq
npm socket.io-parser >= 3.4.0, < 3.4.2 3.4.2 GHSA-qm95-pgcg-qqfq

References