JLSEC-2026-1651: A remote HTTP server can set a cookie that curl accepts and writes to a Netscape cookie jar but...
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/LibCURL_jllto a version that resolves this vulnerability.Fixed in 8.23.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Who is exposed to this issue?
Users of julia/curl_jll or julia/libcurl_jll are exposed when curl uses the same Netscape cookie-jar path for both --cookie and --cookie-jar and contacts a remote HTTP server capable of setting a cookie that curl accepts but cannot later reload.
What does an attacker need to exploit the issue?
An attacker needs to control or operate a remote HTTP server that the affected curl invocation contacts. The supplied vector indicates network reachability, no privileges, and no user interaction, although exploitation has high attack complexity.
How can I tell whether a cookie jar has been affected?
On a subsequent curl invocation using the same file for --cookie and --cookie-jar, curl fails before connecting. Its cleanup procedure then replaces the cookie jar with an empty file, which removes cookies for unrelated domains.