{"answers":{"affected":"6 open source packages ship an affected version, including praisonaiagents, PraisonAI and praisonai.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47390 exists.","fix":"Upgrade praisonaiagents to 1.6.40 or later.","what":"CVE-2026-47390 is a medium-severity server-side request forgery vulnerability in MervinPraison PraisonAI, published on 21 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-47390 and fix it if it is affected.\n\nWhat it is: CVE-2026-47390 is a medium-severity server-side request forgery vulnerability in MervinPraison PraisonAI, published on 21 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47390 exists.\n\nAffected packages and fixed versions:\n- praisonaiagents (PyPI): affected all versions; fixed in 1.6.40\n- praisonaiagents (PyPI): affected all versions; fixed in 1.6.40\n- praisonaiagents (PyPI): affected all versions; fixed in 1.6.40\n- PraisonAI (PyPI): affected all versions; fixed in 4.6.40\n- praisonai (PyPI): affected all versions; fixed in 4.6.40\n- praisonai (PyPI): affected all versions; fixed in 4.6.40\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-47390/ (Markdown: https://insights.sbomify.com/CVE-2026-47390/index.md)","id":"CVE-2026-47390","markdown":"https://insights.sbomify.com/CVE-2026-47390/index.md","name":"CVE-2026-47390","record":{"aliases":["GHSA-5c6w-wwfq-7qqm","PYSEC-2026-2902","PYSEC-2026-2941"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PraisonAI agents library","requires_auth":"none","summary":"Attackers can bypass SSRF protections in PraisonAI spider tools using alternate loopback encodings to access internal services.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, `spider_tools` URL validation can be bypassed using alternate loopback host encodings. The tool contains a URL validation function intended to block local or unsafe targets before fetching attacker-controlled URLs. However, the validation only blocks a small set of exact host strings such as `localhost` and `127.0.0.1`. It does not normalize hostnames, resolve DNS, parse numeric IPv4 variants, or validate the final resolved IP address before making the request. As a result, certain URLs may bypass the protection and still reach loopback services. After the weak validation passes, `scrape_page()` calls `requests.Session.get()` on the attacker-controlled URL. This allows an attacker who can influence URLs passed to `scrape_page`, `crawl`, or `extract_text` to induce SSRF requests against loopback-only services. This is a server-side request forgery protection bypass. PraisonAI version 4.6.40 and praisonaiagents version 1.6.40 contain a patch.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PraisonAI spider_tools SSRF protection bypass via alternate loopback host encodings","id":"CVE-2026-47390","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":6,"n_references":3,"next":{"headline":"PraisonAI's unauthenticated A2A official example can reach real LLM-driven `eval()` tool execution","id":"CVE-2026-47391"},"packages":[{"ecosystem":"PyPI","fixed":["4.6.40"],"introduced":["0"],"last_affected":[],"package":"PraisonAI","purl":null,"source":"GHSA-5c6w-wwfq-7qqm"},{"ecosystem":"PyPI","fixed":["4.6.40"],"introduced":["0"],"last_affected":[],"package":"praisonai","purl":"pkg:pypi/praisonai","source":"GHSA-5c6w-wwfq-7qqm"},{"ecosystem":"PyPI","fixed":["4.6.40"],"introduced":["0"],"last_affected":[],"package":"praisonai","purl":"pkg:pypi/praisonai","source":"PYSEC-2026-2902"},{"ecosystem":"PyPI","fixed":["1.6.40"],"introduced":["0"],"last_affected":[],"package":"praisonaiagents","purl":null,"source":"GHSA-5c6w-wwfq-7qqm"},{"ecosystem":"PyPI","fixed":["1.6.40"],"introduced":["0"],"last_affected":[],"package":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","source":"GHSA-5c6w-wwfq-7qqm"},{"ecosystem":"PyPI","fixed":["1.6.40"],"introduced":["0"],"last_affected":[],"package":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","source":"PYSEC-2026-2941"}],"prev":{"headline":"Mastodon: SSRF protection bypass on older Ruby versions","id":"CVE-2026-47389"},"products":["PraisonAI","praisonaiagents"],"published":"2026-07-21","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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-22","vendors":["MervinPraison"]},"summary":"Attackers can bypass SSRF protections in PraisonAI spider tools using alternate loopback encodings to access internal services.","url":"https://insights.sbomify.com/CVE-2026-47390/"}