CVE-2026-86412

server-set cookie erases cookie jar

Published Oct 20, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

This vulnerability involves libcurl’s handling of server‑set cookies. A remote HTTP server can send a Set‑Cookie header that curl accepts and writes to its Netscape cookie jar. On the next invocation using the same path for `--cookie` and `--cookie-jar`, the client fails before connecting and its cleanup routine replaces the jar with an empty file, deleting cookies for unrelated domains. Because authentication tokens and session data are stored in cookies, the flaw can erase session information and disrupt application functionality. The issue is due to improper cookie management logic (CWE‑754).

Affected Systems

The cURL client library (used by many applications on Windows, Linux, macOS) is affected. Any program that relies on libcurl's cookie handling is impacted. The specific vulnerable versions are not listed in the available data.

Risk and Exploitability

The base CVSS score is 8.1, indicating high severity. The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog. The lack of an explicit attack‑vector annotation suggests that exploitation would require the attacker to influence server responses or communicate with the client over the network. The vulnerability is most likely relevant to remote or local attackers who can dictate headers to the cURL client. While it does not enable arbitrary code execution, it can disrupt application functionality by erasing cookies, potentially causing authentication failure and denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest version of cURL that includes the fix for cookie‑jar erasure.
  • If an upgrade is not immediately possible, disable libcurl’s cookie jar handling or configure strict cookie validation to ignore Set‑Cookie headers that would erase all cookies.
  • Regularly monitor cURL release notes and advisory channels for new security patches and implement automated package‑update mechanisms.

Generated by OpenCVE AI on October 29, 2026 at 21:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8927-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8927-2 curl vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title curl: curl: server-set cookie erases cookie jar server-set cookie erases cookie jar
References
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
Type Values Removed Values Added
Description No description is available for this CVE.
Title curl: curl: server-set cookie erases cookie jar
Weaknesses CWE-754
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}

threat_severity

Low

Weaknesses
  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Oct 29, 2026, 6:46 PM
Reserved
Sep 7, 2026, 12:11 PM
Status
Awaiting Analysis
Published
Oct 20, 2026, 8:17 PM
Modified
Oct 29, 2026, 7:17 PM
Severity
Low
Public date
Oct 14, 2026, 12:00 PM