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.
Published: 2026-09-04
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Certificate validation bypass
Action: Immediate Patch
AI Analysis

Impact

Because BalancedPool clones its options by serializing to JSON, any function-valued TLS option—such as a checkServerIdentity callback or custom connector—is silently discarded before TLS processing. The flaw is a weakness in certificate validation (CWE‑295) that allows an attacker to present a peer certificate that the application’s custom logic intended to reject, yet which passes Node’s default hostname and chain checks. The result is that the connection is considered trusted and accepted, enabling a man‑in‑the‑middle or credential compromise scenario.

Affected Systems

The vulnerability affects undici by undici. It is present in versions 7.24.1 up to 7.29.1 and 8.0.0 up to 8.10.2, but only when an application supplies a function-valued connect or tls option to the BalancedPool constructor. Other dispatchers—Client, Pool, and Agent—extract the options before cloning and are not impacted.

Risk and Exploitability

The CVSS score of 7.4 indicates a high severity flaw, and while no EPSS score is publicly available, the mitigation is straightforward: upgrading to the patched releases immediately reduces the risk. Attackers need only supply custom TLS options that the application normally uses; if they can do so, the attacker can accept forged certificates and intercept traffic. The flaw is not listed in the CISA KEV catalog, but its impact justifies prompt remediation.

Generated by OpenCVE AI on September 4, 2026 at 20:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade undici to version 7.29.1 or 8.10.2 to remove the cloning bug
  • If a patch is not possible, avoid passing function-valued connect or tls options to BalancedPool and use default TLS validation instead
  • Consider switching to Client, Pool, or Agent dispatchers for custom TLS options, or explicitly validate certificates in application code
  • Monitor TLS certificates for unexpected acceptance to detect potential bypass

Generated by OpenCVE AI on September 4, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 15 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Nodejs
Nodejs undici
CPEs cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*
Vendors & Products Nodejs
Nodejs undici

Sat, 05 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 04 Sep 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici undici

Fri, 04 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 04 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool
Weaknesses CWE-295
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-09-04T18:37:44.620Z

Reserved: 2026-09-02T17:45:44.775Z

Link: CVE-2026-84961

cve-icon Vulnrichment

Updated: 2026-09-04T18:36:12.058Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-04T17:17:02.227

Modified: 2026-09-15T14:29:35.253

Link: CVE-2026-84961

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-04T16:47:55Z

Links: CVE-2026-84961 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T21:00:13Z

Weaknesses
  • CWE-295

    Improper Certificate Validation