Intel

AIKIDO-2026-983970

truststore is vulnerable to Improper Certificate Validation

GHSA-8v28-6h89-pmvrPublished Oct 19, 2026
October 19, 2026

68

CVE Score

Medium

Improper Certificate Validation

Are you affected? Scan for Free

TL;DR

truststore's wrap_socket() and wrap_bio() silently skip hostname verification when check_hostname is enabled but the caller does not pass server_hostname, instead of raising an error the way the standard library's ssl.SSLContext does. This only affects macOS and Windows and lets a TLS connection complete without the peer certificate's hostname being checked against the expected host. The fix raises a ValueError from wrap_socket(), wrap_bio(), and the shared verification helper when check_hostname is True and server_hostname is missing or empty.

How do I fix this?

Upgrade the truststore library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you call wrap_socket() or wrap_bio() with check_hostname enabled but without supplying server_hostname on macOS or Windows.

Package

Versions

0.0.1 - 0.10.4

Fixed in 0.10.5

Background info

truststore is vulnerable to Improper Certificate Validation in versions 0.0.1 - 0.10.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea