CyberRota Analysis
AI-GeneratedThe vulnerability lies in the BalancedPool constructor of undici, which improperly handles function-valued TLS options by discarding them during a deep-clone process, potentially allowing malicious peers to be accepted without proper validation. This can lead to security risks, particularly in applications relying on custom certificate validation functions. Developers using undici versions 7.24.1 to 7.29.1 and 8.0.0 to 8.10.2 should prioritize upgrading to versions 7.29.1 or 8.10.2 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
undici's BalancedPool constructor passes its entire options object through an internal deep-clone that serializes and reparses the value as JSON. Because JSON cannot represent functions, any function-valued TLS option, such as a caller-supplied checkServerIdentity callback or a custom connector inside the connect option, is silently discarded before it reaches the TLS layer. As a result a peer whose certificate the application's custom checkServerIdentity was written to reject, but which still passes Node's default hostname and chain checks, is accepted when reached through BalancedPool. The Client, Pool, and Agent dispatchers are not affected because they extract the connect and tls options before cloning. This affects undici versions from 7.24.1 up to 7.29.1 and from 8.0.0 up to 8.10.2, and only when the application supplies a function-valued connect or tls option to BalancedPool. Users should upgrade to undici 7.29.1 or 8.10.2.
Related CVEs
Other vulnerabilities affecting the same vendor(s)