PT-2026-108711
CVE-2026-62173
·
Published
2026-10-08
·
Updated
2026-10-15
Description by
CVSS 3.1
7.8
HighMetricsAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
praisonai versions 4.5.128 through 4.6.63
Description
The API deployment generator in PraisonAI improperly embeds configuration values from
agents.yaml directly into generated Python source code without safe encoding. This allows a malicious project configuration to inject Python expressions via the deploy.api.host variable, which are then executed at startup when the API server is deployed. Additionally, the agents file variable is unsafely interpolated into generated route-handler expressions, creating a second injection point that executes when the handler is evaluated. This issue can lead to arbitrary code execution in the deployment process, potentially exposing environment variables, local files, and API credentials.Recommendations
For versions 4.5.128 through 4.6.63, replace direct interpolation of
deploy.api.host and agents file in the generate api server code() function with safely encoded literals using repr() or json.dumps(). Found an issue in the description? Have something to add? Feel free to write us 👾