CVE-2026-47390

PraisonAI spider_tools SSRF protection bypass via alternate loopback host encodings

Published Jul 21, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

PraisonAI’s spider_tools module validates URLs before making outbound requests. The filter 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 verify the resolved IP address. As a result, an attacker who can supply URLs to the scrape_page, crawl, or extract_text functions can craft URL strings that bypass the filter, allowing the server to make requests to loopback‑only services. This constitutes a server‑side request forgery that can expose internal system capabilities. The vulnerability is identified as CWE‑918.

Affected Systems

The flaw exists in PraisonAI versions earlier than 4.6.40 and in the corresponding praisonaiagents package prior to version 1.6.40. Any deployment running these older releases is potentially vulnerable if URL inputs can be supplied by or influence an attacker. The patch is already available in the stated release series.

Risk and Exploitability

The CVSS score of 5.5 reflects moderate severity, and the EPSS score of less than 1 percent indicates that, at present, the likelihood of exploitation is considered low. The vulnerability is not listed in CISA’s KEV catalog. The attack vector requires attacker supplied URLs to be processed by the vulnerable functions, which can generally be achieved through remote or potentially local input channels. While the attack is possible, the combined low exploitation probability and moderate impact suggest that patching is recommended but the urgency is less than for high‑severity SSRF flaws.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.6.40 or newer, which includes the fix for URL validation.
  • Upgrade praisonaiagents to version 1.6.40 or newer to ensure the vulnerability is patched in the agent component.
  • Implement additional host validation in your deployment, such as normalizing URLs, rejecting all loopback addresses, or verifying the resolved IP is not a private or loopback address before issuing the outbound request.

Generated by OpenCVE AI on July 30, 2026 at 17:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5c6w-wwfq-7qqm PraisonAI spider_tools SSRF protection bypass via alternate loopback host encodings
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Mervinpraison praisonaiagents
Vendors & Products Mervinpraison
Mervinpraison praisonai
Mervinpraison praisonaiagents
Type Values Removed Values Added
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.
Title PraisonAI spider_tools SSRF protection bypass via alternate loopback host encodings
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 22, 2026, 2:10 PM
Reserved
May 19, 2026, 7:22 PM
Status
Deferred
Published
Jul 21, 2026, 4:17 PM
Modified
Jul 22, 2026, 3:17 PM