---
id: "CVE-2026-86412"
kind: "vulnerability"
aliases: ["CVE-2026-86412"]
title: "curl: remote server cookie can wipe unrelated cookies from jar file"
severity: "low"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["ci", "cli", "curl", "package", "scripts"]
not_affected_if: ["no-cookie-jar", "separate-cookie-paths"]
published_at: "2026-10-20T20:17:25+00:00"
first_seen_at: "2026-10-23T21:57:21+00:00"
updated_at: "2026-10-25T05:04:35+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-86412", "first_seen_at": "2026-10-23T21:57:21+00:00"}]
---

# curl: remote server cookie can wipe unrelated cookies from jar file

A remote HTTP server can set a cookie that curl writes to a Netscape cookie jar file but cannot read back. On the next run using the same path for --cookie and --cookie-jar, curl fails and then replaces the jar with an empty file, deleting cookies for other domains.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `curl --version` and compare against the fixed release in the sources, which the sources do not name: unknown
- Search scripts for `--cookie-jar` and `--cookie` pointing at the same file path

## Fix

- Upgrade curl to a release that fixes CVE-2026-86412: unknown
- Until then, use different file paths for `--cookie` and `--cookie-jar`

## Timeline

- 2026-10-23T21:57:21+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-86412

## From the sources

A remote HTTP server can set a cookie that curl accepts and writes to a
Netscape cookie jar but cannot reload. On the next invocation using the same
path for `--cookie` and `--cookie-jar`, curl fails before connecting, then the
cleanup procedure replaces the jar with an empty file, deleting cookies for
unrelated domains.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
