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

Not scored Published

Attacker can force the library to send requests with session headers to arbitrary hosts via malicious challenge paths, potentially leaking data or bypassing controls.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-ggxf-37hm-9wqf?

GHSA-ggxf-37hm-9wqf is a server-side request forgery vulnerability in instagrapi, published on 23 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Which versions are affected by GHSA-ggxf-37hm-9wqf?

2 open source packages ship an affected version, including instagrapi.

PackageAffectedFixed in
instagrapi PyPIAll versions2.6.9
instagrapi PyPIAll versions2.6.9

How do I fix GHSA-ggxf-37hm-9wqf?

Upgrade instagrapi to 2.6.9 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is GHSA-ggxf-37hm-9wqf being exploited?

There is no known exploitation of GHSA-ggxf-37hm-9wqf in the wild and no public exploit code.

Sources

Is GHSA-ggxf-37hm-9wqf in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free