{"answers":{"affected":"3 open source packages ship an affected version, including aiograpi.","exploited":"There is no known exploitation of CVE-2026-47157 in the wild and no public exploit code.","fix":"Upgrade aiograpi to 0.9.10 or later.","what":"CVE-2026-47157 is a medium-severity server-side request forgery vulnerability in subzeroid aiograpi, published on 11 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47157 and fix it if it is affected.\n\nWhat it is: CVE-2026-47157 is a medium-severity server-side request forgery vulnerability in subzeroid aiograpi, published on 11 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-47157 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aiograpi (PyPI): affected all versions; fixed in 0.9.10\n- aiograpi (PyPI): affected all versions; fixed in 0.9.10\n- aiograpi (PyPI): affected all versions; fixed in 0.9.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47157/ (Markdown: https://insights.sbomify.com/CVE-2026-47157/index.md)","id":"CVE-2026-47157","markdown":"https://insights.sbomify.com/CVE-2026-47157/index.md","name":"CVE-2026-47157","record":{"aliases":["GHSA-jh37-x3fv-4x72","PYSEC-2026-2337"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python Instagram API library","requires_auth":"none","summary":"Attackers can force the library to send requests to arbitrary hosts with session headers by manipulating challenge paths, potentially leaking data or bypassing security controls.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"aiograpi is an asynchronous Instagram API for Python. 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. If an attacker can influence a challenge response, for example through a local network, DNS, or proxy compromise, challenge handling requests could 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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"aiograpi: Unsafe signup challenge path handling","id":"CVE-2026-47157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Vaultwarden: CSRF in SSO Authorization Flow","id":"CVE-2026-47158"},"packages":[{"ecosystem":"PyPI","fixed":["0.9.10"],"introduced":["0"],"last_affected":[],"package":"aiograpi","purl":null,"source":"GHSA-jh37-x3fv-4x72"},{"ecosystem":"PyPI","fixed":["0.9.10"],"introduced":["0"],"last_affected":[],"package":"aiograpi","purl":"pkg:pypi/aiograpi","source":"GHSA-jh37-x3fv-4x72"},{"ecosystem":"PyPI","fixed":["0.9.10"],"introduced":["0"],"last_affected":[],"package":"aiograpi","purl":"pkg:pypi/aiograpi","source":"PYSEC-2026-2337"}],"prev":{"headline":"MantisBT: SOAP API Authentication Bypass with Privilege Escalation to Administrator","id":"CVE-2026-47156"},"products":["aiograpi"],"published":"2026-06-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-11","vendors":["subzeroid"]},"summary":"Attackers can force the library to send requests to arbitrary hosts with session headers by manipulating challenge paths, potentially leaking data or bypassing security controls.","url":"https://insights.sbomify.com/CVE-2026-47157/"}