CVE-2026-139823

undici vulnerable to cache poisoning and cross-host disclosure via a mismatched Host header

Published Dec 5, 2026 CVSS 3.1 · 4.8 Medium EPSS n/a KEV · Not listed
Description
undici is an HTTP client for Node.js. In versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0, the cache interceptor looks up and stores responses by the request's origin, method, and path, while undici sends an explicit Host request header to the server as given. When an application sends requests for several hosts to one origin by setting the Host header, a cacheable response for one host is stored under the shared origin key and served to a later request for a different host without that request reaching the server. This can disclose one host's response to callers of another, and lets a caller who controls the Host header of one request choose the response that other requests to the same origin and path receive. Applications are affected only when they use the cache interceptor and send requests whose Host header names a different authority than the request origin, and responses that include a Vary header on Host are not affected. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later and clear persistent cache stores populated before upgrading. As a workaround, do not use the cache interceptor on dispatchers that send an explicit Host header for a different host, use a separate dispatcher and cache store per host, or have the server send a Vary header on Host.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Description undici is an HTTP client for Node.js. In versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0, the cache interceptor looks up and stores responses by the request's origin, method, and path, while undici sends an explicit Host request header to the server as given. When an application sends requests for several hosts to one origin by setting the Host header, a cacheable response for one host is stored under the shared origin key and served to a later request for a different host without that request reaching the server. This can disclose one host's response to callers of another, and lets a caller who controls the Host header of one request choose the response that other requests to the same origin and path receive. Applications are affected only when they use the cache interceptor and send requests whose Host header names a different authority than the request origin, and responses that include a Vary header on Host are not affected. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later and clear persistent cache stores populated before upgrading. As a workaround, do not use the cache interceptor on dispatchers that send an explicit Host header for a different host, use a separate dispatcher and cache store per host, or have the server send a Vary header on Host.
Title undici vulnerable to cache poisoning and cross-host disclosure via a mismatched Host header
Weaknesses CWE-346
CWE-524
References
Metrics cvssV3_1

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

Subscriptions

No data.

Weaknesses
  • CWE-346

    Origin Validation Error

  • CWE-524

    Use of Cache Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Dec 5, 2026, 10:06 AM
Reserved
Nov 30, 2026, 2:24 PM
Status
Awaiting Analysis
Published
Dec 5, 2026, 10:17 AM
Modified
Dec 5, 2026, 10:17 AM