{
  "schema_version": "1.5.0",
  "id": "CURL-CVE-2026-86412",
  "aliases": [
    "CVE-2026-86412"
  ],
  "summary": "server-set cookie erases cookie jar",
  "modified": "2026-09-17T12:57:32.00Z",
  "database_specific": {
    "package": "curl",
    "affects": "both",
    "URL": "https://curl.se/docs/CVE-2026-86412.json",
    "www": "https://curl.se/docs/CVE-2026-86412.html",
    "issue": "https://hackerone.com/reports/3973201",
    "CWE": {
      "id": "CWE-754",
      "desc": "Improper Check for Unusual or Exceptional Conditions"
    },
    "last_affected": "8.22.0",
    "severity": "Low"
  },
  "published": "2026-10-14T08:00:00.00Z",
  "affected": [
    {
      "ranges": [
        {
           "type": "SEMVER",
           "events": [
             {"introduced": "8.18.0"},
             {"fixed": "8.20.2"},
             {"introduced": "8.21.0"},
             {"fixed": "8.23.0"}
           ]
        },
        {
           "type": "GIT",
           "repo": "https://github.com/curl/curl.git",
           "events": [
             {"introduced": "3f0629ca443825916cbc0795bcd5f241fbf7104c"},
             {"fixed": "6ded3e594455d6f018fab5f2f5d916eb9bc4ef94"}
           ]
        }
      ],
      "versions": [
        "8.22.0", "8.21.0", "8.20.0", "8.19.0", "8.18.0"
      ]
    }
  ],
  "credits": [
    {
      "name": "Stanislav Fort (Aisle Research)",
      "type": "FINDER"
    },
    {
      "name": "Daniel Stenberg",
      "type": "REMEDIATION_DEVELOPER"
    }
  ],
  "details": "A remote HTTP server can set a cookie that curl accepts and writes to a\nNetscape cookie jar but cannot reload. On the next invocation using the same\npath for `--cookie` and `--cookie-jar`, curl fails before connecting, then the\ncleanup procedure replaces the jar with an empty file, deleting cookies for\nunrelated domains."
}