Skip to content

cookie

cookie: Private cookie nonces can repeat in processes that fork

CVE-2026-140014GHSA-8wcq-xq25-7fhmPublished 30 Nov 2026, 22:00 UTC

Real-world risk

2.7/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.5

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

cookie is an HTTP cookie parsing and cookie jar management library for Rust. From 0.11.3 until 0.12.0 and from 0.14.0 until 0.18.3, PrivateJar generates AES-256-GCM nonces with rand::thread_rng(), whose buffered state can be duplicated when a Unix-like process calls fork() without exec(). The forking thread must have used the thread-local generator before the fork, and two resulting processes must add private cookies on that same thread with a shared Key; applications that do not fork, create cookies only on post-fork threads, use SignedJar, or run on Windows are not affected. At most the first 21 private cookies added on that thread in each resulting process can reuse nonces before the generator reseeds and the processes diverge. An attacker must obtain two cookies from different resulting processes that share a nonce to recover plaintext relationships and forge private cookies accepted by the application. This issue is fixed in version 0.18.3.

Am I affected?

ProductAffected versions (from the sources)Fixed in
cookieNiche>= 0.14.0, < 0.18.3; >= 0.11.3, < 0.12.00.18.3
cookie-rsNiche>= 0.14.0, < 0.18.3; >= 0.11.3, < 0.12.00.18.3, 0.12.0

What to do

Update to a fixed version: 0.18.3, 0.12.0.

Why this score

FactorValueEvidence×
ImpactMajor data tamperingWrites or changes important data without gaining executionFrom the CVSS vector0.70
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.7 × prerequisites 0.45 × threat 0.852.677
  4. Rounded to one decimal between 0.1 and 102.7

How the score works

Exploitation and evidence timeline

  1. 30 Nov 2026 Published
  2. 2 Dec 2026 Risk 2.7 (cvss fallback)

Weakness

CWE-323

References

Get alerts for cookie

Free email or text alerts when a vulnerability in cookie reaches risk 8 or higher. Nothing else.