Advisory

GHSA-ggxf-37hm-9wqf

Also known as: None

Summary

instagrapi: Unsafe signup challenge path handling in instagrapi

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-23 00:12 UTC
Modified
2026-05-23 00:15 UTC

Affected packages and fixes

instagrapi

PyPI · All systems

Affected

  • introduced 0, fixed 2.6.9 (ecosystem)

Fixed versions

2.6.9

Fix

  • Fixed version 2.6.9
    pip install --upgrade instagrapi==2.6.9

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences