Mercurial before 1.6.4 fails to verify the Common Name field of SSL certificates which allows remote attackers who acquire a certificate signed by a Certificate Authority to perform a man-in-the-middle attack.
https://security-tracker.debian.org/tracker/CVE-2010-4237
https://bz.mercurial-scm.org/show_bug.cgi?id=2407