# GHSA-GGXF-37HM-9WQF: instagrapi: Unsafe signup challenge path handling in instagrapi

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-05-23
- Modified: 2026-05-23

## Affected versions

- instagrapi (PyPI): fixed in 2.6.9

## Description

instagrapi versions before 2.6.9 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 2.6.9 validates challenge paths before building URLs, solving captcha challenges, or submitting phone/SMS challenge forms.

## References

- https://github.com/subzeroid/instagrapi/security/advisories/GHSA-ggxf-37hm-9wqf
- https://github.com/subzeroid/instagrapi

Page: https://cve.now/GHSA-GGXF-37HM-9WQF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
