cookie: Private cookie nonces can repeat in processes that fork
CVE-2026-140014GHSA-8wcq-xq25-7fhm
What to do
Vendor fix available. Upgrade each affected package to the fixed version on its release line (cookie 0.18.3), redeploy, then verify what is actually installed.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
crates.io cookie
- Affected
- >= 0.14.0, < 0.18.3>= 0.11.3, < 0.18.3
- Fixed in
- 0.18.3
Sources
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record RUSTSEC-2026-0594 lists affected ranges: crates.io cookie >=0.11.3 =0.14.0 <0.18.3 (fixed)
VerifiedObserved Structured OSV record; not marked as GitHub-reviewed.
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record GHSA-8wcq-xq25-7fhm lists affected ranges: crates.io cookie >=0.14.0 =0.11.3 <0.18.3 (fixed)
VerifiedObserved Structured OSV record; GitHub-reviewed advisory.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS
- 6.5 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
- EPSS
- CVE-2026-140014: 0.43% estimated exploitation activity in the next 30 days; percentile 39.58 (FIRST EPSS, 2026-12-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description
As published by the source; long descriptions are shortened.
Who is affected Only applications that call `fork()` and then add private (encrypted) cookies on the thread that forked, in more than one of the resulting processes. This is an uncommon way to deploy a Rust web application. In particular: * Rocket is not affected. * axum is not affected as normally run. It is affected only when an application forks worker processes itself and runs each on a current-thread runtime. See "Rocket and axum" below. * Applications that never fork are not affected. This includes all applications on Windows. * Signed cookies (`SignedJar`) are not affected. The exact conditions are listed under "Conditions" below.
Description Private cookies are sealed with AES-256-GCM using a random 96-bit nonce. Affected versions drew the nonce from `rand`'s thread-local generator, `rand::thread_rng()`. That generator hands out bytes from an internal buffer and only notices that the process has forked when the buffer is refilled. A process that forks therefore…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 4 · amended ·
Amended from osv record RUSTSEC-2026-0594
- Revision 3 · amended ·
Amended from osv record GHSA-8wcq-xq25-7fhm
- Revision 2 · amended ·
Amended from osv record RUSTSEC-2026-0594
- Revision 1 · created ·
Published from osv record RUSTSEC-2026-0594
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: CVE-2026-140014 Advisory: cookie: Private cookie nonces can repeat in processes that fork IDs: CVE-2026-140014, GHSA-8wcq-xq25-7fhm Record: https://patchnext.com/advisories/rustsec-2026-0594 (revision 4, source checked 3 Dec 2026, 06:40 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Medium (CVSS 6.5) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Vendor fix available; fixed versions by package: cookie 0.18.3. A vendor fix does not mean a deployment is fixed. ## Affected components - crates.io cookie: affected >= 0.14.0, < 0.18.3; >= 0.11.3, < 0.18.3; fixed in 0.18.3 ## Suggested inspection (read-only) - crates.io cookie: check the installed version with your package manager. ## Supported action Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on cookie. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://osv.dev/vulnerability/RUSTSEC-2026-0594 (OSV record RUSTSEC-2026-0594 lists affected ranges: crates.io cookie >=0.11.3 =0.14.0 <0.18.3 (fixed)) - Verified: https://osv.dev/vulnerability/GHSA-8wcq-xq25-7fhm (OSV record GHSA-8wcq-xq25-7fhm lists affected ranges: crates.io cookie >=0.14.0 =0.11.3 <0.18.3 (fixed)) Commands are suggestions: review each one before running it.
Loading voting…