CVE-2026-47157: aiograpi Unsafe Signup Challenge Path Handling Vulnerability

MODERATE
Advisory Identifier: GHSA-jh37-x3fv-4x72
CVSS 6.5
CWE-918
Published
Advisory Summary

CVE-2026-47157 is a MODERATE (CVSS 6.5) unsafe signup challenge path handling vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting aiograpi libraries in the PyPI ecosystem. The issue involves unsafe signup challenge path handling. Remediation is available by upgrading affected packages to version 0.9.10.

CVE-2026-47157 at a Glance

CVE Identifier CVE-2026-47157
GHSA Identifier GHSA-jh37-x3fv-4x72
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product aiograpi
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-47157

To remediate this vulnerability, upgrade all affected aiograpi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aiograpi fixed: 0.9.10
pip install aiograpi>=0.9.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show aiograpi

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-47157, inspect your installed packages using pip:

pip show aiograpi

Analyze the terminal output to locate any version of aiograpi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.10), your application is affected.

Note: The pip show aiograpi command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In aiograpi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-47157 Affected aiograpi Versions

1 component(s)
Fixed Versions:
0.9.10
Product / Package Ecosystem Affected Versions Fixed Version
aiograpi
PyPI
< 0.9.10
0.9.10

References

Frequently Asked Questions

What is CVE-2026-47157?
CVE-2026-47157 is a security vulnerability in aiograpi involving Unsafe signup challenge path handling under CWE-918: Server-Side Request Forgery (SSRF).
Which aiograpi versions are affected?
Affected versions include releases prior to 0.9.10 across affected packages: aiograpi.
What version fixes CVE-2026-47157?
Upgrading to 0.9.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aiograpi affected?
Yes, aiograpi is affected in releases prior to 0.9.10. Upgrade your dependency to 0.9.10 or later.
What is the CVSS score of CVE-2026-47157?
CVE-2026-47157 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-47157?
CVE-2026-47157 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2026-47157?
Run the dependency tree command: 'pip show aiograpi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jh37-x3fv-4x72",
  "modified" : "2026-06-12T19:25:40Z",
  "published" : "2026-05-23T00:11:53Z",
  "aliases" : [ "CVE-2026-47157" ],
  "summary" : "aiograpi: Unsafe signup challenge path handling",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "aiograpi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/subzeroid/aiograpi/security/advisories/GHSA-jh37-x3fv-4x72"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-47157"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/subzeroid/aiograpi/pull/274"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/subzeroid/aiograpi/commit/9c24151916beca622e588bfb3167c98711ff744f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/subzeroid/aiograpi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/subzeroid/aiograpi/releases/tag/0.9.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-23T00:11:53Z",
    "nvd_published_at" : "2026-06-11T18:16:26Z"
  }
}