CVE-2026-55526: PraisonAI SSRF protection bypass in spider_tools via DNS resolution

CVE-2026-55526 · Severity: high · CVSS 8.5 · Published 2026-08-25

PraisonAI agents that include web scraping tools can be tricked into making requests to internal systems (localhost, private networks, cloud metadata services) by using public DNS aliases. An attacker instructing an agent to fetch a specially crafted URL like `http://127.0.0.1.nip.io/admin` will trigger an HTTP request to the internal `127.0.0.1` address, potentially exposing secrets, admin panels, or AWS credentials. This is a dangerous gap in request filtering that can lead to data breaches or cloud account compromise.

Technologies: MervinPraison PraisonAI Agents, praisonaiagents (PyPI). Vendors: MervinPraison, PyPI.

Quick answers

Is CVE-2026-55526 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-55526 being exploited in the wild.
How severe is CVE-2026-55526?
High severity, with a CVSS score of 8.5, published 25 August 2026.
Which products and versions are affected?
praisonaiagents (PyPI) ECOSYSTEM:introduced=0,fixed=1.6.58.
Is there a fix for CVE-2026-55526?
Yes. praisonaiagents (PyPI): upgrade to 1.6.58 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-55526 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-55526?
Check whether you run MervinPraison PraisonAI Agents or praisonaiagents (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • praisonaiagents (PyPI): upgrade to 1.6.58 or later
    pip install "praisonaiagents>=1.6.58"

Technical details

The vulnerability is a Server-Side Request Forgery (SSRF) bypass in the `_host_is_blocked()` function within `praisonaiagents/tools/spider_tools.py` (lines 26–65). The function checks for literal hostname aliases (e.g., "localhost") and attempts to parse the input as an IP address using `ipaddress.ip_address()` and `socket.inet_aton()`, but it never resolves DNS names. For any real hostname that is not a literal IP (e.g., `127.0.0.1.nip.io`), both parsing attempts fail and the function incorrectly returns `False` (not blocked). Meanwhile, the same protection was correctly implemented in `web_crawl_tools.py` using `socket.gethostbyname()`, creating an exploitable inconsistency. An attacker can craft URLs using public wildcard DNS services to resolve to private IPs (127.0.0.1, 10.x.x.x) or AWS IMDS endpoints (169.254.169.254), enabling full-read SSRF with arbitrary port access. The fix is to add DNS resolution before IP validation, mirroring the pattern already used in `web_crawl_tools.py`.

Affected products

  • MervinPraison praisonaiagents < 1.6.58

Identifiers

  • CVE-2026-55526
  • GHSA-x44h-65qv-cw74
  • PYSEC-2026-3905

Timeline

  • 2026-06-13: disclosed
  • 2026-08-25: patched: Patch released in version 1.6.58

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.