Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. praisonai
  4. ›
  5. CVE-2026-47398

CVE-2026-47398: PraisonAI: Arbitrary code execution via unguarded `spec.loader.exec_module` in `agents_generator.py` - sibling of CVE-2026-44334

May 29, 2026

CVEGHSAFixed inWhat was patched
CVE-2026-40156GHSA-2g3w-cpc4-chr44.5.128CWD tools.py auto-load in tool_resolver.py
CVE-2026-40287GHSA-g985-wjh9-qxxc4.5.139Env-var gate added to tool_resolver.py + api/call.py
CVE-2026-44334GHSA-xcmw-grxf-wjhj4.6.32Missed sink in templates/tool_override.py
This finding—unfixedMissed sinks in agents_generator.py

336 def load_tools_from_module(self, module_path):

References

  • github.com/MervinPraison/PraisonAI/security/advisories/GHSA-78r8-wwqv-r299
  • github.com/advisories/GHSA-78r8-wwqv-r299
  • nvd.nist.gov/vuln/detail/CVE-2026-47398

Code Behaviors & Features

Detect and mitigate CVE-2026-47398 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.6.40

Fixed versions

  • 4.6.40

Solution

Upgrade to version 4.6.40 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/praisonai/CVE-2026-47398.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:03 +0000.