curl / Docs / curl CVEs / HSTS cache import drops longer-lived child

CVE-2026-87862

HSTS cache import drops longer-lived child

Project curl Security Advisory, October 14 2026 Permalink

VULNERABILITY

Importing a includeSubDomains parent HSTS entry before a longer-lived child entry, silently drops the child. Consequently, when the parent expires, the child's valid HSTS policy is lost, causing curl to issue unencrypted HTTP requests rather than upgrading to HTTPS.

INFO

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87862 to this issue.

CWE-201: Information Exposure Through Sent Data

Severity: Low

AFFECTED VERSIONS

libcurl is used by many applications, but not always advertised as such!

This flaw also affects the curl command line tool.

SOLUTION

RECOMMENDATIONS

A - Upgrade curl to version 8.23.0

B - Apply the patch to your local version

C - Do not rely on HSTS

TIMELINE

This issue was reported to the curl project on August 26, 2026.

curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.

CREDITS

Thanks a lot!