<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-17T21:01:11.637981+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-61433</id>
    <title>CVE-2026-61433 — PraisonAI before 4.6.78 Code Injection via API deployment generator</title>
    <updated>2026-10-17T21:01:11.663364+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> MervinPraison PraisonAI</p>
<p>PraisonAI before 4.6.78 fails to safely encode deployment configuration values when generating Python source code for API servers. Attackers can inject arbitrary Python expressions through the deploy.api.host and agents_file configuration parameters that execute when the generated server starts or handles requests.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-61433"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-79fv-7hq9-w7xg</id>
    <title>GHSA-79fv-7hq9-w7xg — PraisonAI: API deploy code generator embeds unescaped YAML fields into Python source</title>
    <updated>2026-10-17T21:01:11.663451+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: praisonai</p>
<p># API deploy code generator embeds unescaped YAML fields into Python source</p>
<p>## Summary</p>
<p>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.</p>
<p>## Technical Details</p>
<p>The vulnerable path starts with deployment configuration parsing. `Deploy.from_yaml()` reads the operator-supplied `agents.yaml`, `validate_agents_yaml()` accepts `deploy.api.host` as a string, and API deployments call `start_api_server(self.agents_file, self.config.api)`. `start_api_server()` calls `generate_api_server_code()` and executes the generated Python file with `python`.</p>
<p>The current generator in `src/praisonai/praisonai/deploy/api.py` treats deployment data as Python syntax:</p>
<p>```python
def generate_api_server_code(agents_file: str, config: Optional[APIConfig] = None) -&gt; str:
    ...
    code = f'''"""
...
        praisonai = PraisonAI(agent_file="{agents_file}")
...
        "agent_file": "{agents_file}"
...
    app.run(
        host='{config.host}',
        port={config.port},
        debug={config.reload}…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-79fv-7hq9-w7xg"/>
  </entry>
</feed>
