Live threats

All CVEs / Tweepy

CVE-2012-5825Tweepy

High 7.4 No auth needed

Priority
59
CVSS 3.1
7.4
EPSS
0.6%
probability of exploitation in 30 days · percentile 43
Auth required
No
Published
Nov 4, 2012
Updated
Sep 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

Tweepy does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate, related to use of the Python httplib library.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tweepy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI tweepy < 3.0 3.0 pip install "tweepy>=3.0"
PyPI tweepy < 2.3.1 2.3.1 pip install "tweepy>=2.3.1"

Per OSV / GitHub Advisories (GHSA-pwx5-xg7g-wpc5, PYSEC-2012-17). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tweepytweepy< 3.0.0

Official sources

References

Links published by the sources. Open them with care.