CVE-2026-109383 undici: custom TLS verification silently dropped
undici 4.0.0–6.29.0, 7.0.0–7.30.0 and 8.0.0–8.12.1 drop a custom checkServerIdentity callback, so TLS peers your own check would reject can be accepted. Upgrade to 6.29.1, 7.30.1…
Published by phil.on on
How this vulnerability works
undici is a helper that lets Node.js programs fetch data over the internet; in affected versions, an application's own extra server-identity check is silently lost, so a server the application meant to refuse can be accepted.
- How it starts
Application adds its own server check
The application passes a custom function to undici that is meant to inspect the server's certificate and reject servers it does not trust. Only applications that supply such a function are at risk.
- What goes wrong
The custom check is dropped
Before setting up each connection, undici copies its settings in a way that cannot carry functions, so the custom check disappears. The connection then relies only on the standard built-in checks, and a server your check would have refused can pass unnoticed.
- What it means for you
Unintended server could be trusted
Because the extra check never runs, the application could connect to a server it was explicitly configured to reject and send it data. The source does not say whether this has been exploited in practice.
An everyday comparisonIt is like a building where you added a rule that the doorman must also check a special pass. The rule is written on a note, but the note is thrown away before the doorman reads it, so anyone who passes the usual front-door check gets in.
A simplified explanation of the reported flaw. Actual risk depends on the affected version and how the system is used.
Affected products
- undici (HTTP client library for Node.js)
- 4.0.0 through 6.29.0 (fixed in 6.29.1)
- 7.0.0 through 7.30.0 (fixed in 7.30.1)
- 8.0.0 through 8.12.1 (fixed in 8.12.2)
- Affected components:
Agent(the default dispatcher behindrequest,fetchandsetGlobalDispatcher) andEnvHttpProxyAgenton its direct and no-proxy routes. - At risk: only applications that pass a function-valued
tlsoption, such as a customcheckServerIdentityused for certificate or public-key pinning. - CVSS: 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
- undici undici ↗undici / undici: 4.0.0 | < 6.29.1 | affected | semver; 6.29.1 | unaffected | semver; 7.0.0 | < 7.30.1 | affected | semver; 7.30.1 | unaffected | semver; 8.0.0 | < 8.12.2 | affected | semver; 8.12.2 | unaffected | semver
- nodejs undici ↗
Why it matters
undici is a library that lets programs written in Node.js fetch data over the internet. In the affected versions, when an application supplies its own extra check for the identity of the server it connects to, that check is quietly lost before the secure connection is set up. The connection then relies only on the standard built-in checks. A server whose certificate the application's own check was written to refuse, but which still satisfies the standard checks, would therefore be accepted without any warning.
This only matters for applications that add such a custom check, for example to trust a specific certificate or public key. For those applications, a connection could be made to an impostor server that the application intended to block, potentially exposing data sent to it. The problem is fixed in undici 6.29.1, 7.30.1 and 8.12.2 and later, which keep the custom check intact.
Checks and remediation
What to check
- Inventory every application, service and container image that bundles undici, including transitive copies pulled in by other Node.js packages. Check installed versions against the affected ranges: 4.0.0 through 6.29.0, 7.0.0 through 7.30.0 and 8.0.0 through 8.12.1.
- For each copy, confirm whether the application passes a function-valued
tlsoption, in particular a customcheckServerIdentityused for certificate or public-key pinning, toAgent,request,fetch,setGlobalDispatcherorEnvHttpProxyAgent. Applications that do not pass such a callback are outside the stated risk condition. - Identify which of those applications run on customer-managed hosts (for example Ubuntu or other Linux servers, containers, or AWS or GCP virtual machines) versus managed platforms where the provider controls the runtime and bundled libraries.
Remediation steps
- Upgrade undici to 6.29.1, 7.30.1, 8.12.2 or later in every affected application. Use your package manager or lockfile tooling so the dependency tree, not just the top-level entry, is updated; rebuild and redeploy container images afterwards.
- Self-hosted Ubuntu/Linux: update the application's dependency manifests and lockfiles, rebuild, and redeploy each service. If your distribution packages Node.js or undici, apply the corresponding package updates through the system package manager. You are responsible for patching these hosts.
- AWS: update and redeploy affected workloads on customer-managed compute such as EC2 instances, ECS tasks, EKS clusters and Lambda functions whose own code bundles undici. Rebuild container images from updated lockfiles. For managed services where AWS supplies the runtime, check the provider's advisory for patched versions rather than assuming your application update covers it.
- GCP: update and redeploy affected workloads on Compute Engine, GKE, Cloud Run and Cloud Functions that bundle undici in application code. Rebuild images from updated lockfiles. For managed runtimes where Google controls the bundled libraries, follow the provider's guidance.
- Temporary workaround (if an immediate upgrade is not possible): pass the TLS options through
connectinstead oftls, or for proxied destinations userequestTlsandproxyTls. Treat this as a reversible stopgap and plan the upgrade. - Verification: after redeployment, confirm the running version of undici in each service is at or above the fixed release, and confirm that the custom certificate check is actually applied by testing against a server your check is meant to reject. Re-run the inventory to make sure no older copies remain in dependency trees or images.
Patch status
Patch status unconfirmed.
Workarounds
Workaround not documented.
CVSS and CWE
CVSS 3.1 · 7.4 · openjs ↗CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Additional CVSS assessments by source and scope
- CVSS 3.1 · 7.4 · ce714d77-add3-4f53-aff5-83d477b104bb ↗
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 3.1 · 9.1 · [email protected] ↗
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 3.1 · 7.4 · openjs ↗
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N





