truststore is vulnerable to Improper Certificate Validation
68
CVE Score
Medium
Improper Certificate Validation
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.
Upgrade the truststore library to the patch version.
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.
0.0.1 - 0.10.4
Fixed in 0.10.5truststore is vulnerable to Improper Certificate Validation in versions 0.0.1 - 0.10.4.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.