Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. socket.io-parser
  4. ›
  5. CVE-2022-2421

CVE-2022-2421: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

October 26, 2022 (updated January 2, 2024)

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.

References

  • csirt.divd.nl/cases/DIVD-2022-00045
  • csirt.divd.nl/cves/CVE-2022-2421
  • nvd.nist.gov/vuln/detail/CVE-2022-2421

Code Behaviors & Features

Detect and mitigate CVE-2022-2421 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.5, all versions starting from 4.1.0 before 4.2.1

Fixed versions

  • 4.0.5
  • 4.2.1

Solution

Upgrade to versions 4.0.5, 4.2.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

npm/socket.io-parser/CVE-2022-2421.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:40 +0000.