GitHub Advisoryadvisory · PyPI

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

MEDIUM Published 2026-05-23 Modified 2026-05-23 Official page ↗
Ecosystem
PyPI
Packages
instagrapi
Severity
Moderate
CVSS vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-918
Reviewed
2026-05-23

Affected packages

• PyPI instagrapi: < 2.6.9 → 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.

Related

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References