CVE-2026-87862

HSTS cache import drops longer-lived child

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

Analysis

AI-generated

Technical impact

A flaw in the curl library causes the HSTS cache importer to drop longer‑lived child domain entries when a parent domain entry with subdomains is loaded first. After the parent policy expires, curl fails to upgrade connections on that subdomain to HTTPS and sends requests unencrypted. This permits a network attacker to intercept and read sensitive data. The weakness stems from improper handling of cached HSTS entries (CWE‑201).

Affected Systems

This vulnerability occurs in the curl library itself and is not limited to a single vendor or product. The CVE does not specify a particular curl release, so any installation that employs HSTS caching and has not yet been upgraded to a remediation‑capable version may be affected.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity, and the EPSS score is < 1%. The vulnerability is not listed in CISA KEV. Exploitation would typically involve an attacker who can influence or observe the client’s HSTS cache or who is positioned to perform a man‑in‑the‑middle attack after the parent policy lapses. Although the risk is substantial, the impact on confidentiality is significant because traffic that should have been encrypted can be captured in plaintext.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade curl to the latest released version that includes the HSTS cache import fix.
  • If an upgrade cannot be performed immediately, disable HSTS caching for the affected subdomains or clear the existing HSTS cache to prevent the accidental dropping of subdomain policies.
  • Ensure that the HSTS cache file permissions prevent unauthorized modification and audit it regularly for unexpected changes.

Generated by OpenCVE AI on October 30, 2026 at 14:15 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-8932-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8927-2 curl vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

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 A flaw was found in curl. When importing HTTP Strict Transport Security (HSTS) cache records, loading a parent domain entry configured to include subdomains before a longer-lived subdomain entry silently drops the subdomain policy. Consequently, once the parent policy expires, curl fails to upgrade subsequent connections for the subdomain to HTTPS and transmits unencrypted requests, allowing a network attacker to intercept sensitive data. 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.
Title curl: curl: HSTS cache import drops longer-lived child HSTS cache import drops longer-lived child
References
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
Type Values Removed Values Added
Description A flaw was found in curl. When importing HTTP Strict Transport Security (HSTS) cache records, loading a parent domain entry configured to include subdomains before a longer-lived subdomain entry silently drops the subdomain policy. Consequently, once the parent policy expires, curl fails to upgrade subsequent connections for the subdomain to HTTPS and transmits unencrypted requests, allowing a network attacker to intercept sensitive data.
Title curl: curl: HSTS cache import drops longer-lived child
Weaknesses CWE-201
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low

Weaknesses
  • CWE-201

    Insertion of Sensitive Information Into Sent Data

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Oct 30, 2026, 11:57 AM
Reserved
Sep 9, 2026, 1:17 PM
Status
Awaiting Analysis
Published
Oct 20, 2026, 9:17 PM
Modified
Oct 30, 2026, 12:16 PM
Severity
Low
Public date
Oct 14, 2026, 12:00 PM