{"id":"CVE-2022-2421","summary":"Socket.io - Improper type validation in attachment parsing","details":"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.","aliases":["GHSA-qm95-pgcg-qqfq"],"modified":"2026-08-12T03:30:23.395624862Z","published":"2022-10-25T00:00:00Z","database_specific":{"cna_assigner":"DIVD","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2421.json","unresolved_ranges":[{"extracted_events":[{"introduced":"4.x"},{"fixed":"4.2.1"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"ADVISORY","url":"https://csirt.divd.nl/CVE-2022-2421"},{"type":"ADVISORY","url":"https://csirt.divd.nl/DIVD-2022-00045"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2421.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2421"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/socketio/socket.io-parser","events":[{"introduced":"0"},{"fixed":"cd11e38e1a3e2146617bc586f86512605607b212"},{"introduced":"652402a8568c2138da3c27c96756b32efca6c4bf"},{"fixed":"4b3c191bc411578099c8dd35499d8c7a75860192"},{"introduced":"c04d7f5c47ed712eb0f56cfc1a859f1aaa828f1e"},{"fixed":"f3329eb5a46b215a3fdf91b6008c56cf177a4124"},{"introduced":"5ad3e5cc4b16326e3def2b834bd90c0424bfdd83"},{"fixed":"5a2ccff9d1d8fdbadd3faad9290a9e3b165cf9a2"}],"database_specific":{"cpe":"cpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.3.3"},{"introduced":"3.4.0"},{"fixed":"3.4.2"},{"introduced":"4.0.0"},{"fixed":"4.0.5"},{"introduced":"4.1.0"},{"fixed":"4.2.1"}],"source":"CPE_RANGE"}}],"versions":["3.3.2","4.0.4","4.2.0","4.1.2","4.1.1","4.1.0","4.0.3","3.3.1","4.0.2","4.0.1","4.0.1-rc3","4.0.1-rc2","4.0.1-rc1","4.0.0","3.3.0","3.4.1","3.4.0","3.2.0","3.1.3","3.1.2","3.1.1","3.1.0","3.0.0","2.3.2","2.3.1","2.3.0","2.2.6","2.2.5","2.2.4","2.2.3","2.2.2","2.2.1","2.2.0","2.1.5","2.1.4","2.1.3","2.1.2","2.1.1","2.1.0","2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2421.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}