Highlights
Information Disclosure: 9 prior fixes. Scrutinize any change in this area.
requests/sessions.py: most-fixed (16 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Information Disclosure: The library has repeatedly leaked sensitive headers (Authorization, Cookie, Proxy-Authorization) and request bodies across cross-origin, cross-scheme, or cross-port boundaries during HTTP redirects. Developers modifying the redirect pipeline must ensure rigorous state stripping.
Cryptographic Issues: TLS certificate validation has been silently bypassed due to simple string-matching flaws (such as missing .lower() calls on scheme strings) and improper environment-variable fallback logic. Ensure case-insensitive scheme matching is consistently enforced prior to evaluating verification requirements.