MEDIUM6.5
PYSEC-2026-2337
aiograpi: Unsafe signup challenge path handling
Quick fix
PYSEC-2026-2337 — aiograpi: upgrade to the fixed version with the command below.
pip install --upgrade 'aiograpi>=0.9.10'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/subzeroid/aiograpi/security/advisories/GHSA-jh37-x3fv-4x72[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-47157[ADVISORY]
- https://github.com/subzeroid/aiograpi/pull/274[WEB]
- https://github.com/subzeroid/aiograpi/commit/9c24151916beca622e588bfb3167c98711ff744f[WEB]
- https://github.com/subzeroid/aiograpi[PACKAGE]
- https://github.com/subzeroid/aiograpi/releases/tag/0.9.10[WEB]
- https://pypi.org/project/aiograpi[PACKAGE]
- https://github.com/advisories/GHSA-jh37-x3fv-4x72[ADVISORY]