← Back to Patch Radar
PATCH RADAR / CVE-2026-109383

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…

High · CVSS 3.1 · 7.4 · CVE disclosed
Published by phil.on on
THE FLAW, SIMPLY EXPLAINED

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.

  1. 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.

  2. 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.

  3. 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 behind request, fetch and setGlobalDispatcher) and EnvHttpProxyAgent on its direct and no-proxy routes.
  • At risk: only applications that pass a function-valued tls option, such as a custom checkServerIdentity used 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

  1. 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.
  2. For each copy, confirm whether the application passes a function-valued tls option, in particular a custom checkServerIdentity used for certificate or public-key pinning, to Agent, request, fetch, setGlobalDispatcher or EnvHttpProxyAgent. Applications that do not pass such a callback are outside the stated risk condition.
  3. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Temporary workaround (if an immediate upgrade is not possible): pass the TLS options through connect instead of tls, or for proxied destinations use requestTls and proxyTls. Treat this as a reversible stopgap and plan the upgrade.
  6. 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

References

SHARE THIS NOTE