CVE-2026-84961
undici's BalancedPool constructor passes its entire options object …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cna.openjsf.org/security-advisories.html
- github.com/nodejs/undici/security/advisories/GHSA-w293-vg96-wgc3
- nvd.nist.gov/vuln/detail/CVE-2026-84961
- github.com/nodejs/undici/commit/8f5868fbdbc8f1146dfc1bcd1f2d117790141390
- github.com/nodejs/undici/commit/f690157d728508652fef14673630c71515123e96
- github.com/nodejs/undici/releases/tag/v7.29.1
- github.com/nodejs/undici/releases/tag/v8.10.2
- github.com/advisories/GHSA-w293-vg96-wgc3
- nvd.nist.gov/vuln/detail/CVE-2026-84961
- cve.org/CVERecord?id=CVE-2026-84961
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.