CVE-2026-61433: PraisonAI: API deploy code generator embeds unescaped YAML fields into Python source
PraisonAI’s API deployment generator copies deploy.api.host from agents.yaml directly into generated Python source without safe literal encoding. A malicious PraisonAI project can set that host value to a Python expression splice; when an operator runs the API deploy flow, the generated server source compiles and executes the injected expression at startup. The same generator also embeds agents_file directly into generated route-handler expressions, giving a second route-time source injection site if the agent file path is attacker-controlled.
References
- github.com/MervinPraison/PraisonAI/commit/1620b49f36945d8cc8ee5635b906c960df5097a0
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-79fv-7hq9-w7xg
- github.com/advisories/GHSA-79fv-7hq9-w7xg
- nvd.nist.gov/vuln/detail/CVE-2026-61433
- nvd.nist.gov/vuln/detail/CVE-2026-62173
- www.vulncheck.com/advisories/praisonai-before-code-injection-via-api-deployment-generator
Code Behaviors & Features
Detect and mitigate CVE-2026-61433 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 →