CWE
20 1287 89
Advisory Published
Advisory Published
Updated

CVE-2022-2421: Socket.io - Improper type validation in attachment parsing

First published: Tue Oct 25 2022(Updated: )

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.

Credit: csirt@divd.nl csirt@divd.nl csirt@divd.nl

Affected SoftwareAffected VersionHow to fix
npm/socket.io-parser>=3.4.0<3.4.2
3.4.2
npm/socket.io-parser<3.3.3
3.3.3
npm/socket.io-parser>=4.0.0<4.0.5
4.0.5
npm/socket.io-parser>=4.1.0<4.2.1
4.2.1
Socket Socket.io-parser Node.js<4.0.5
Socket Socket.io-parser Node.js>=4.1.0<4.2.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-2421?

    CVE-2022-2421 is a vulnerability in the Socket.io js library that allows an attacker to overwrite the _placeholder object, potentially placing references to functions in the resulting query object.

  • What is the severity of CVE-2022-2421?

    The severity of CVE-2022-2421 is critical with a severity value of 9.8.

  • Which software is affected by CVE-2022-2421?

    The Socket.io-parser library versions 4.0.5 and 4.1.0 to 4.2.1 running on Node.js are affected by CVE-2022-2421.

  • How can an attacker exploit CVE-2022-2421?

    An attacker can exploit CVE-2022-2421 by leveraging the improper type validation in attachment parsing to overwrite the _placeholder object and place references to functions in the resulting query object.

  • Is there a fix available for CVE-2022-2421?

    Yes, it is recommended to update to a version of the Socket.io-parser library that is not affected by CVE-2022-2421.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203