Description
engine.io-client is the client for engine.io, the implementation of a transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. The vulnerability is related to the way that node.js handles the `rejectUnauthorized` setting. If the value is something that evaluates to false, certificate verification will be disabled. This is problematic as engine.io-client 1.6.8 and earlier passes in an object for settings that includes the rejectUnauthorized property, whether it has been set or not. If the value has not been explicitly changed, it will be passed in as `null`, resulting in certificate verification being turned off.
Remediation
References
https://github.com/socketio/engine.io-client/commit/2c55b278a491bf45313ecc0825cf800e2f7ff5c1
https://nodesecurity.io/advisories/99
https://www.cigital.com/blog/node-js-socket-io/
Related Vulnerabilities
CVE-2013-4940 Vulnerability in npm package yui
CVE-2022-37616 Vulnerability in maven package org.webjars.npm:xmldom
CVE-2022-3509 Vulnerability in maven package com.google.protobuf:protobuf-javalite
CVE-2023-26491 Vulnerability in npm package rsshub
CVE-2021-39134 Vulnerability in npm package @npmcli/arborist