ADVISORIES

PyPA Advisory Database

PYSEC-2026-2337

aiograpi: Unsafe signup challenge path handling

Details

aiograpi versions before 0.9.10 accepted server-supplied signup challenge paths and used them to build request URLs before validating that the paths were relative Instagram API paths. A malicious or tampered challenge payload could cause challenge handling requests to be sent outside the intended Instagram host with the client\'s existing session headers. Version 0.9.10 validates challenge paths before building URLs, solving captcha challenges, or submitting phone/SMS challenge forms.

Affected packages

EcosystemPackageAffected versions
PyPIaiograpi
All versions before 0.9.10 (fixed in 0.9.10)

References