Intel

AIKIDO-2026-221830

truststore is vulnerable to Race Condition (TOCTOU)

GHSA-pmqj-r2x2-vx88Published Oct 19, 2026
October 19, 2026

74

CVE Score

High

Race Condition (TOCTOU)

Are you affected? Scan for Free

TL;DR

truststore's SSLContext runs handshake completion and certificate verification for a shared context without holding its configuration lock for the whole operation on macOS and Windows. Concurrent handshakes on the same SSLContext instance can interleave with another thread's context configuration, so a handshake finishes and reports success while certificate verification is effectively skipped for that connection and can stay disabled for the lifetime of the shared context. The fix holds an RLock for the full configuration, handshake, and verification sequence.

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 share a single truststore.SSLContext instance across concurrent handshakes on macOS or Windows.

Package

Versions

0.0.1 - 0.10.4

Fixed in 0.10.5

Background info

truststore is vulnerable to Race Condition (TOCTOU) 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