CVE-2026-44797: Python Requests Session Send Redirect Ssrf

Using `requests.Session().send()` without disabling redirects (`allow_redirects=False`) can lead to Server-Side Request Forgery (SSRF). Attackers can bypass URL validation by pointing to a server that responds with a redirect to an internal or restricted URL. Disable redirects during the `send()` call and optionally handle them manually after validation.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-44797-python-requests-session-send-redirect-ssrf --engine opengrep

Description

Using `requests.Session().send()` without disabling redirects (`allow_redirects=False`) can lead to Server-Side Request Forgery (SSRF). Attackers can bypass URL validation by pointing to a server that responds with a redirect to an internal or restricted URL. Disable redirects during the `send()` call and optionally handle them manually after validation.