Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

dpkp/kafka-python
master @ ad4c865
4
Fixes
2
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
kafka/conn.py: most-fixed (2 issues). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Broken Cryptography: Using resolved IP addresses instead of the original hostname during SSL/TLS socket wrapping leads to certificate validation failures, exposing connections to man-in-the-middle attacks. Developers must preserve the original hostname in all wrap_socket operations.
Cryptographic Issues: Insecure TLS configurations default to obsolete protocols (like SSLv23) and lack strict minimum-version enforcement, exposing broker connections to protocol downgrade attacks. Transport layers must enforce a minimum of TLS 1.2 and use modern TLS client context builders.
Auth Bypass: Failing to enforce proper authorization checks during consumer metadata updates or including internal topics in wildcard patterns allows unauthorized access to restricted topics. Strict authorization validation must occur during all consumer subscription updates.