CVE-2026-61431: PraisonAI: ContextGatherer include resolution permits absolute and traversal reads outside the workspace
PraisonAI’s praisonai.ui.context.ContextGatherer treats the configured directory as the project workspace, but project-controlled .praisoncontext and .praisoninclude files can name absolute paths or .. traversal paths. When context gathering runs, PraisonAI opens those outside paths and appends their contents to the generated context bundle. An attacker who can supply or modify a workspace repository can therefore cause process-readable files outside the intended project root to be sent to the caller or model as project context.
References
- github.com/MervinPraison/PraisonAI/commit/1620b49f36945d8cc8ee5635b906c960df5097a0
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-q7m5-3jmv-vm48
- github.com/advisories/GHSA-q7m5-3jmv-vm48
- nvd.nist.gov/vuln/detail/CVE-2026-61431
- www.vulncheck.com/advisories/praisonai-before-path-traversal-via-contextgatherer
Code Behaviors & Features
Detect and mitigate CVE-2026-61431 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →