Exposure of Private Personal Information to an Unauthorized Actor Affecting undici package, versions >=7.17.0 <7.30.4>=8.0.0 <8.14.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-UNDICI-23775833
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditHLMLSAMDO

Introduced: 5 Dec 2026

NewCVE-2026-139839  (opens in a new tab)
CWE-359  (opens in a new tab)

How to fix?

Upgrade undici to version 7.30.4, 8.14.1 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Exposure of Private Personal Information to an Unauthorized Actor via the shared cache interceptor's background stale-while-revalidate revalidation path. When a shared cache holds a stale entry inside its stale-while-revalidate window, undici serves it and revalidates in the background. If the background revalidation receives a 304 Not Modified response that introduces a Vary field the stored response did not have, undici does not treat the representation as changed: it re-stores the old, unvaried body under the background caller's value of that header and marks it fresh. Later callers with that header value are then served a body generated for a different request, possibly for another user or tenant, without the origin being contacted, resulting in cross-user disclosure of cached responses.

Note: This is only exploitable when a shared cache is used, the origin first returns a cacheable response without Vary and with stale-while-revalidate, and a later background 304 introduces Vary.

Workaround

Use a private cache (type: 'private'), disable stale-while-revalidate reuse for per-user resources, or ensure the origin sends the final Vary header on the initial response.

CVSS Base Scores

version 4.0
version 3.1