# GHSA-ggxf-37hm-9wqf: instagrapi: Unsafe signup challenge path handling in instagrapi

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-23T00:12:34.000Z
- Modified: 2026-05-23T00:15:16.736Z
- Weaknesses: CWE-918

## 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.

(As written by GitHub Advisory Database.)

## Affected

- instagrapi (PyPI): before 2.6.9

## References

- <https://github.com/subzeroid/instagrapi/security/advisories/GHSA-ggxf-37hm-9wqf> (web)
- <https://github.com/subzeroid/instagrapi> (package)

## Sources

- GitHub Advisory Database: [GHSA-ggxf-37hm-9wqf](https://github.com/advisories/GHSA-ggxf-37hm-9wqf), CC-BY-4.0, modified 2026-05-23

---

Page: https://cve.day/GHSA-ggxf-37hm-9wqf · Whole record: https://cve.day/GHSA-ggxf-37hm-9wqf.json · Rebuilt by cve.day 2026-11-25T22:56:35.406Z
