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://www.cigital.com/blog/node-js-socket-io/
https://nodesecurity.io/advisories/99
https://github.com/socketio/engine.io-client/commit/2c55b278a491bf45313ecc0825cf800e2f7ff5c1
Related Vulnerabilities
CVE-2022-24847 Vulnerability in maven package org.geoserver.community:gs-taskmanager-core
CVE-2021-29505 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2022-4742 Vulnerability in maven package org.webjars.npm:json-pointer
CVE-2023-24789 Vulnerability in maven package org.jeecgframework.boot:jeecg-boot-parent
CVE-2020-2247 Vulnerability in maven package org.jenkins-ci.plugins:klocwork