CVE-2012-5825 · mitre
CVE-2012-5825
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.
Published 2012-11-04, last changed 2026-09-17. Weakness: CWE-20.
How to fix
Upgrade to a fixed version: tweepy 2.3.1, 3.0 (PyPI) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in tweepy/tweepy by pull request #400. Functions changed by the fix: APIMethod, __init__, build_parameters, build_path, execute, parse, _run, _read_loop, firehose, retweet, sample, filter. Regression tests: tests/test_streaming.py. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2012-11-04 | Published |
| 2012-11-04 | Package advisory PYSEC-2012-17 |
| 2022-05-17 | Package advisory GHSA-pwx5-xg7g-wpc5 |
| 2026-09-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.61% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-pwx5-xg7g-wpc5 | tweepy (PyPI) | 3.0 |
| PYSEC-2012-17 | tweepy (PyPI) | 2.3.1 |
Also known as: GHSA-pwx5-xg7g-wpc5, PYSEC-2012-17
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-106804 | 2026-11-02 | 7.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-71383 | 2026-10-06 | 9.8 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-51997 | 2026-09-24 | 8.8 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-79410 | 2026-09-15 | 8.1 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-66974 | 2026-09-15 | 7.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-39020 | 2026-09-09 | 5.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-51619 | 2026-09-09 | 5.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-79376 | 2026-09-08 | 8.8 | same weakness (CWE-20) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2012-5825, or call /api/v1/vulnerabilities/CVE-2012-5825. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.