cvelo
P3 · MediumCVSS 4.8

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

  • CVE-2026-139823
  • EUVD-2026-145410

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.

Text from the CVE.org record.

Recommendation

  • undici

    • If you run a version from 8.0.0 to before 8.14.1update to 8.14.1 or laterMinor version change: check the release notes
    • If you run a version from 7.0.0 to before 7.30.4update to 7.30.4 or laterMinor version change: check the release notes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • undici

    Affected versionsFixed in
    from 8.0.0 to before 8.14.18.14.1
    from 7.0.0 to before 7.30.47.30.4

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.