The urllib3 library before 1.24.2 for Python mishandles certain cases where the desired set of CA certificates is different from the OS store of CA certificates, which results in SSL connections succeeding in situations where a verification failure is the correct outcome. This is related to use of the ssl_context, ca_certs, or ca_certs_dir argument.
https://usn.ubuntu.com/3990-1/
https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html
https://lists.debian.org/debian-lts-announce/2021/06/msg00015.html
https://github.com/urllib3/urllib3/compare/a6ec68a...1efadf4
https://access.redhat.com/errata/RHSA-2019:3590
https://access.redhat.com/errata/RHSA-2019:3335
http://www.openwall.com/lists/oss-security/2019/04/19/1
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00041.html
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00039.html