CVE-2026-87866 wolfSSL public-key pinning bypass

Critical 9.1 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-87866?

CVE-2026-87866 is a critical vulnerability in curl, published on 20 Oct 2026.

Official description

When built with wolfSSL, curl can successfully validate a pinned public key hash against a key the TLS peer does not possess. During the TLS handshake, wolfSSL validates the connection, but curl's subsequent re-parsing of the same certificate - tricked by a manipulated validity length field - extracts and matches a different embedded key, incorrectly authorizing the pinned public key.

Weakness: CWE-295

Which versions are affected by CVE-2026-87866?

How do I fix CVE-2026-87866?

Upgrade to a fixed version.

Is CVE-2026-87866 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-87866 exists.

Sources

Also known as ALPINE-CVE-2026-87866, AZL-109920, AZL-109953, AZL-110028, AZL-110133, AZL-110211 and 6 more.

Is CVE-2026-87866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free