Skip to main content

aiograpi CVE-2026-47157

| EUVDEUVD-2026-36272 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-23 https://github.com/subzeroid/aiograpi GHSA-jh37-x3fv-4x72
6.5
CVSS 3.1 · Vendor: https://github.com/subzeroid/aiograpi
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain adjacent network position (MitM)
  2. Delivery
    Intercept Instagram challenge API response
  3. Exploit
    Inject attacker-controlled host path into challenge payload
  4. Execution
    aiograpi builds URL to attacker server
  5. Persist
    Client sends request with session headers to attacker
  6. Impact
    Capture and replay stolen session credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The aiograpi client must be actively processing an Instagram signup challenge flow (captcha or phone/SMS verification) at the time of attack. The attacker must occupy an adjacent-network position (AV:A) capable of intercepting and modifying HTTP responses between the client and Instagram - for example, on the same LAN, Wi-Fi network, or upstream network path. No authentication to the target system is required (PR:N) and no victim interaction beyond the normal challenge-flow operation is needed (UI:N). Exploitation is limited by the adjacent-network constraint: remote, unauthenticated exploitation across the internet is not possible per the CVSS AV:A vector. Deployments on isolated, firewalled network segments with no untrusted network adjacency have negligible realistic exposure.

Impact

The CVSS base score of 6.5 (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) reflects a meaningful but constrained threat. The Adjacent Vector (AV:A) is the primary limiting factor: an attacker cannot exploit this from the open internet but must be in a position to tamper with network responses between the aiograpi client and Instagram's servers - for example, via a MitM on a shared Wi-Fi network, a rogue upstream proxy, or a compromised network path. Attack Complexity is Low and no privileges or user interaction are required once that adjacency is achieved, making exploitation straightforward for a suitably positioned adversary. The confidentiality impact is High because session headers, which carry authentication tokens, are forwarded to the attacker-controlled endpoint - effectively achieving session hijacking. Integrity and availability are unaffected. No EPSS score was provided in the input data, so exploitation probability cannot be quantified from that signal. The CVE is not listed in the CISA KEV catalog and no POC code has been reported, indicating no confirmed widespread active exploitation at time of analysis. Overall, this is a moderate-priority issue for applications using aiograpi that operate in untrusted network environments; deployments on hardened, isolated networks face lower realistic risk.

Exploit ScenarioDerived

An attacker positioned on the same network segment as a host running aiograpi performs a man-in-the-middle attack against the client's HTTPS session - for example, via ARP spoofing on a shared network or by operating a rogue Wi-Fi access point - and intercepts an Instagram challenge response. The attacker modifies the challenge path value in the payload to point to an attacker-controlled server before forwarding it to the client. aiograpi builds the subsequent challenge request URL using the injected path, sends it to the attacker's server, and includes the client's existing Instagram session headers, which the attacker captures and replays to authenticate as the victim. No POC code has been publicly reported, but the attack requires only standard MitM tooling and manipulation of a single JSON field.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 23, 2026

Server-Side Request Forgery in aiograpi before 0.9.10 allows an adjacent-network attacker to redirect Instagram challenge-handling HTTP requests to arbitrary attacker-controlled hosts, exfiltrating the client's active session headers including authentication tokens. The library trusted server-supplied signup challenge paths and used them verbatim to construct outbound URLs without first verifying the path remained within Instagram's API domain. No public exploit code has been identified and this CVE does not appear in the CISA KEV catalog, but the high confidentiality impact (CVSS C:H) reflects that session credential theft is the direct outcome of a successful attack.

RemediationAI

Upgrade aiograpi to version 0.9.10 or later, which validates that all server-supplied challenge paths are relative Instagram API paths before constructing any outbound URLs, solving captcha challenges, or submitting phone/SMS challenge forms. This is the primary and complete fix, confirmed by the vendor advisory at https://github.com/subzeroid/aiograpi/security/advisories/GHSA-jh37-x3fv-4x72. If immediate upgrade is not possible, a compensating control is to deploy the aiograpi client exclusively on network segments with strict egress filtering that denies outbound HTTPS to non-Instagram domains (e.g., *.instagram.com, *.cdninstagram.com whitelist); this would prevent exfiltration of session headers to attacker-controlled hosts, though it introduces operational risk of blocking legitimate API calls if the allowlist is misconfigured. Additionally, rotating session credentials (Instagram session tokens) after any period of operation on untrusted or shared networks reduces the value of credentials that may have already been exposed.

Affected VersionsENISA

aiograpi < 0.9.10

Affected Packages

pypi aiograpi fix: 0.9.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

aiograpi is an asynchronous Python client library (pip package: aiograpi) for the Instagram Private API. During account signup or challenge flows, Instagram's API returns challenge payloads that include path values. Prior to version 0.9.10, the library concatenated these server-supplied paths directly into outbound request URLs - covering captcha challenge resolution and phone/SMS challenge form submission - without validating that the resulting URL remained scoped to a legitimate Instagram API host. This is a textbook CWE-918 (Server-Side Request Forgery) pattern: untrusted input from a server response is used to construct a subsequent outbound request without host-scope enforcement. The CPE identifier is pkg:pip/aiograpi, and the CVSS vector AV:A indicates exploitation requires adjacent-network positioning, consistent with a man-in-the-middle or response-tampering scenario during the challenge exchange.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/subzeroid/aiograpi) PRIMARY 6.5 MEDIUM
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (https://github.com/subzeroid/aiograpi) · only source for this CVE.

CVSS VectorVendor: https://github.com/subzeroid/aiograpi

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy