{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-86412",
        "assignerOrgId": "2499f714-1537-4658-8207-48ae4bb9eae9",
        "state": "PUBLISHED",
        "assignerShortName": "curl",
        "dateReserved": "2026-09-07T12:11:50.326Z",
        "datePublished": "2026-10-20T20:03:28.200Z",
        "dateUpdated": "2026-10-20T20:03:28.200Z"
    },
    "containers": {
        "cna": {
            "title": "server-set cookie erases cookie jar",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "providerMetadata": {
                "orgId": "2499f714-1537-4658-8207-48ae4bb9eae9",
                "shortName": "curl",
                "dateUpdated": "2026-10-20T20:03:28.200Z"
            },
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-754 Improper Check for Unusual or Exceptional Conditions"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "curl",
                    "product": "curl",
                    "versions": [
                        {
                            "version": "8.22.0",
                            "status": "affected",
                            "lessThanOrEqual": "8.22.0",
                            "versionType": "semver"
                        },
                        {
                            "version": "8.21.0",
                            "status": "affected",
                            "lessThanOrEqual": "8.21.0",
                            "versionType": "semver"
                        },
                        {
                            "version": "8.20.0",
                            "status": "affected",
                            "lessThanOrEqual": "8.20.0",
                            "versionType": "semver"
                        },
                        {
                            "version": "8.19.0",
                            "status": "affected",
                            "lessThanOrEqual": "8.19.0",
                            "versionType": "semver"
                        },
                        {
                            "version": "8.18.0",
                            "status": "affected",
                            "lessThanOrEqual": "8.18.0",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "references": [
                {
                    "url": "https://curl.se/docs/CVE-2026-86412.json",
                    "name": "json"
                },
                {
                    "url": "https://curl.se/docs/CVE-2026-86412.html",
                    "name": "www"
                },
                {
                    "url": "https://hackerone.com/reports/3973201",
                    "name": "issue"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Stanislav Fort (Aisle Research)",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Daniel Stenberg",
                    "type": "remediation developer"
                }
            ]
        }
    }
}