Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87861 Overview
CVE-2026-87861 affects cURL when applications use ambient user credentials for HTTP requests. The flaw allows a request destined for one origin to be sent over a connection that was previously authenticated via Negotiate for a different origin. The intended credentials for the new request are silently dropped, and the request inherits the authentication state of the prior origin.
This cross-origin credential confusion weakens the trust boundary between distinct endpoints sharing a client process. The issue was reported through HackerOne Report #3972094 and documented in the cURL CVE-2026-87861 Advisory.
Critical Impact
HTTP requests may be delivered to a remote origin under the authentication context of an unrelated origin, exposing authenticated sessions to unintended destinations.
Affected Products
- cURL (libcurl) builds that support Negotiate authentication
- Applications relying on ambient user credentials via SPNEGO/Kerberos
- HTTP clients embedding libcurl for authenticated multi-origin workflows
Discovery Timeline
- 2026-10-20 - CVE-2026-87861 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-87861
Vulnerability Analysis
The defect lives in how libcurl matches outgoing HTTP requests to pooled connections when Negotiate authentication is active. Negotiate is a stateful, connection-bound authentication scheme built on SPNEGO and typically backed by Kerberos or NTLM. Once a TCP connection completes a Negotiate handshake, the server treats subsequent requests on that connection as belonging to the authenticated principal.
When libcurl reuses such a connection, the connection selection logic can match a request targeted at a different origin. The new request is dispatched without applying its own intended credentials. The server at the far end of the reused socket then processes the request under the previously negotiated identity, which does not correspond to the origin named in the request URL.
Root Cause
The root cause is improper connection reuse validation. Connection pool matching does not fully account for the origin that produced the Negotiate authentication state. Ambient credentials, which libcurl acquires implicitly from the operating system session, make this failure silent because no explicit credential prompt occurs. The result is an authorization bypass condition driven by connection scheme reuse.
Attack Vector
An attacker who controls or influences one of multiple origins contacted by the same client process can receive requests intended for a different origin. Those requests arrive authenticated with the user's ambient Negotiate credentials bound to the attacker-controlled origin's prior connection. The intended destination never sees the request, and the user's authenticated context leaks to an unintended endpoint. See the cURL CVE-2026-87861 JSON Data for structured advisory details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-87861
Indicators of Compromise
- Server access logs showing authenticated requests for URLs the client did not intend to send to that host.
- Kerberos ticket usage against unexpected service principal names (SPNs) correlated with libcurl user agents.
- Unexpected cross-origin HTTP activity from applications that pool libcurl connections.
Detection Strategies
- Inventory applications that link libcurl and enable Negotiate authentication with ambient credentials.
- Compare the libcurl version shipped with each application against the fixed release referenced in the vendor advisory.
- Review HTTP egress telemetry for sessions where authenticated requests target origins outside the application's expected scope.
Monitoring Recommendations
- Monitor Kerberos service ticket requests for SPNs that do not match the authenticated user's documented workflows.
- Alert on authenticated HTTP requests to hosts not present in approved allowlists for libcurl-based services.
- Capture process-to-destination mappings to identify libcurl clients contacting multiple distinct origins within a single session.
How to Mitigate CVE-2026-87861
Immediate Actions Required
- Upgrade libcurl to the patched release identified in the cURL CVE-2026-87861 Advisory.
- Audit applications that call CURLOPT_HTTPAUTH with CURLAUTH_NEGOTIATE and rely on ambient credentials.
- Restrict trust boundaries so a single client process does not share Negotiate-authenticated connections across unrelated origins.
Patch Information
The cURL project has published advisory details and fixed versions in the official advisory. Rebuild or redeploy any application statically linked against vulnerable libcurl builds. Operating system vendors that ship libcurl should be checked for backported fixes before relying on distribution packages.
Workarounds
- Disable Negotiate authentication where ambient credentials are not strictly required, forcing explicit credential selection per request.
- Set CURLOPT_FORBID_REUSE on handles that perform Negotiate authentication to prevent cross-request connection sharing.
- Isolate libcurl handles per origin so pooled connections cannot be matched to requests targeting a different host.
# Configuration example
# Disable connection reuse for handles performing Negotiate auth
curl --no-keepalive --negotiate -u : https://service.example.internal/resource
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

