Skip to content
Heist/ feed
Back to feed
Critical

Socket.io - Improper type validation in attachment parsing

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-2421
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:45 UTC · Revision 1

Source evidence

Socket.io - Improper type validation in attachment parsing

core-osv · Original source

Published 25 Oct 2022, 00:00 UTC

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.

osv:CVE-2022-2421
Complete source record
{
  "id": "97019b78d107319e6de5d1dea5277a6db7ad7c656992b478a3a264db22eaee0c",
  "url": "https://osv.dev/vulnerability/CVE-2022-2421",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Socket.io - Improper type validation in attachment parsing",
    "summary": "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.",
    "evidence": "osv:CVE-2022-2421",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-2421",
      "aliases": [
        "CVE-2022-2421",
        "GHSA-qm95-pgcg-qqfq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/socketio/socket.io-parser",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "cd11e38e1a3e2146617bc586f86512605607b212"
                },
                {
                  "introduced": "652402a8568c2138da3c27c96756b32efca6c4bf"
                },
                {
                  "fixed": "4b3c191bc411578099c8dd35499d8c7a75860192"
                },
                {
                  "introduced": "c04d7f5c47ed712eb0f56cfc1a859f1aaa828f1e"
                },
                {
                  "fixed": "f3329eb5a46b215a3fdf91b6008c56cf177a4124"
                },
                {
                  "introduced": "5ad3e5cc4b16326e3def2b834bd90c0424bfdd83"
                },
                {
                  "fixed": "5a2ccff9d1d8fdbadd3faad9290a9e3b165cf9a2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.3.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "fixed": "3.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:socket:socket.io-parser:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "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/cve-osv-conversion/osv-output/CVE-2022-2421.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.132261199Z",
      "provider": "osv",
      "references": [
        "https://csirt.divd.nl/CVE-2022-2421",
        "https://csirt.divd.nl/DIVD-2022-00045",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2421.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-2421"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "DIVD",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.x"
                  },
                  {
                    "fixed": "4.2.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2421.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-2421",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505456,
  "published_at": "2022-10-25T00:00:00+00:00"
}