// Security Advisory Triage
ssl.get_server_certificate() skips identity check when ca_certs supplied
Python security announcements · published 2026-11-13 06:47 UTC
WHAT CHANGEDCVE-2026-19552 published 9 November 2026. When ssl.get_server_certificate() is called with the ca_certs parameter, the function verifies the certificate chain but does not verify the certificate identity matches the server address. Python rates this LOW severity.
WHY IT MATTERSCode using ssl.get_server_certificate(addr, ca_certs=...) to validate a server's certificate will accept a valid certificate for any domain, not just the one being connected to. An attacker with a certificate trusted by the supplied CA can impersonate any server.
WHAT TO DOCheck whether your code or dependencies call ssl.get_server_certificate() with the ca_certs parameter. Affected versions and fix: see CVE-2026-19552 at https://www.cve.org/CVERecord?id=CVE-2026-19552 and pull request https://github.com/python/cpython/pull/161507
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## [Security-announce][CVE-2026-19552] ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity +https://mail.python.org/archives/list/security-announce@python.org/message/SXBD6BGHDBTGM4KSUMQEWYIQ5RO4BQ76/ +Mon, 09 Nov 2026 14:12:16 +0000 + +There is a LOW severity vulnerability affecting CPython. + +When ca_certs parameter was supplied to ssl.get_server_certificate() +function, the identity of the certificate is not checked. + +Please see the linked CVE ID for the latest information on affected +versions: + +* https://www.cve.org/CVERecord?id=CVE-2026-19552 +* https://github.com/python/cpython/pull/161507
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | Python ssl module vulnerability in certificate identity verification affects services using this standard library function. |
| signals | Python runtime vulnerability · ssl module affected · identity verification bypass in certificate validation · affects ssl.get_server_certificate() — function in standard library dependency tree · CVE assigned and published · affects core cryptographic validation logic |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |