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-2022-23106 Vulnerability in maven package io.jenkins:configuration-as-code
CVE-2007-5333 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2018-1999002 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2020-28498 Vulnerability in npm package elliptic
CVE-2022-43416 Vulnerability in maven package org.jenkins-ci.plugins:katalon