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-2021-31635 Vulnerability in maven package com.jfinal:jfinal
CVE-2021-46363 Vulnerability in maven package info.magnolia:magnolia-core
CVE-2022-36663 Vulnerability in maven package org.gluu:oxauth-common
CVE-2023-24807 Vulnerability in npm package undici
CVE-2021-3827 Vulnerability in maven package org.keycloak:keycloak-server-spi-private