Repository navigation
Releases
PraisonAI v4.8.7
Release v4.8.7
PraisonAI v4.8.6
PraisonAI v4.8.5
PraisonAI v4.8.4
PraisonAI v4.8.3
PraisonAI v4.8.2
PraisonAI v4.8.1
v4.8.0: Security hardening release
Security hardening release
This release makes PraisonAI safer by default. Servers stay on your own machine unless you give them a token. Tools that read files, fetch URLs or run code now stay inside clear limits. A project you clone can no longer change your trust settings.
Most users need to do nothing. If a change stops something you rely on, the Migration table names the setting that brings the old behaviour back.
Packages in this release
| Package | Version |
|---|---|
praisonaiagents (PyPI) |
1.8.0 |
praisonai (PyPI) |
4.8.0 |
praisonai-code (PyPI) |
0.2.0 |
praisonai-bot (PyPI) |
0.2.0 |
praisonai-mcp (PyPI) |
0.2.0 |
praisonai-sandbox (PyPI) |
0.2.0 |
praisonai-browser (PyPI) |
0.2.0 |
praisonai-deploy (PyPI) |
0.2.0 |
praisonai-train (PyPI) |
0.2.0 |
praisonai (npm) |
1.8.0, follows shortly |
| PraisonAI Desktop | 4.8.0 |
Upgrade with:
pip install -U praisonai # installs every Python package above
npm install praisonai@latest # TypeScript SDK (1.8.0, follows shortly)Servers and binds
One rule now applies to every built-in server: it listens on 127.0.0.1 by default. A server that you open to the network needs a token.
- Every network server binds
127.0.0.1by default. - A non-loopback bind without a token refuses to start, with a message that names the setting to use. This covers
AgentServer, the Jobs API,praisonai serve agents/a2a/unified/openai,rag serve,registry serve,recipe serve, AgentOS (Python and TypeScript, includingserve({ host })), the call server, praisonai-browser remote mode, the TypeScript MCP server and the N8N listener. praisonai call --publicneedsCALL_SERVER_TOKEN.- Webhook receivers without a signing secret stay on loopback.
HTTPApprovalon a public host needsallowed_approvers. A2A.serve(), MCP over SSE andlaunch()still start on a public host, but print a generated token that every request must send.- A2A on loopback checks
PRAISONAI_LAUNCH_AUTH_TOKENwhen it is set./infoneeds the token when one is set. - The dashboard and the replay viewer follow the same bind rule.
- A Jobs API started with
uvicorn ...:create_app --factoryand no key answers only/health, unlessPRAISONAI_JOBS_BIND_HOST=127.0.0.1says it is local. - Keyless local servers refuse requests from other websites (a foreign or
nullOrigin) and requests with a non-localHost. If you use a reverse proxy, keepHost: localhostor set a key. - Request bodies are capped: 10 MB on the MCP HTTP-stream server and 25 MB on the gateway. Larger bodies get
413. - Token checks use constant-time comparison.
- The recipe server keeps bounded per-client rate-limit and metrics state.
- On the MCP server,
tools/searchneedstools:read, and a method with no scope mapping needsadmin. - The desktop engine answers only requests addressed to a local host name.
Gateway and bots
- The local gateway refuses browser pages from other sites (HTTP and WebSocket) unless the origin is listed in
GATEWAY_ALLOWED_ORIGINS. - With a scope policy,
/v1/*and/mcpneed thewritescope, and/api/pairing/pendingneedspairing. - With a scope policy, a session resumes only for the token that created it.
- At most 1000 HTTP API sessions stay live. The oldest idle one is closed and can be resumed from the store.
- On a gateway with a token, unauthenticated
/healthshows only the status. - People who cannot message a bot cannot press its buttons or run its slash commands.
- With
admin_usersset,/undo,/blueprintand/automationsare admin-only. - An email or AgentMail bot with no
allowed_usersand the defaultunknown_user_policy(deny) no longer answers unknown senders. - In a shared Slack channel, an unthreaded "yes" no longer counts as an approval when the bot cannot read thread replies. The request times out and is denied.
- Bot daemon install refuses a config path that contains
",%or a control character. session_searchreturns only sessions of the current user, then of the current agent.
Outbound fetching
Tools that fetch a URL now use one shared check. It refuses private, loopback and cloud-metadata addresses, and pins the address it checked.
- URL readers, fetch tools, document loaders, image
.save(), the praisonai-codeimagecommand, MCP OAuth and OIDC metadata, remote instruction sources and bot inbound media refuse private and loopback addresses. SetALLOW_LOCAL_CRAWL=trueto fetch local services in development. - Webhooks to
100.64.0.0/10are refused. - Bot media URLs written in IPv4-in-IPv6 form are refused.
- MCP OAuth follows a metadata redirect through a plain-HTTP hop when the final document is HTTPS. (It used to refuse.)
- crawl4ai crawls (optional
[crawl]extra) stop browser requests to blocked addresses, and return an error instead of content when the final URL is blocked. Known limit: a browser redirect can still send one request to a blocked address before it is stopped; no response content is returned. If this matters, add network-level egress rules. - JIRA tools that use
JIRA_API_TOKENfrom the environment needJIRA_URL, and send the token only to that origin. OpenAPIToolset(spec_url=..., auth=...)raises when the fetched spec names a server on another origin. Passbase_url=to choose the server.- Jobs webhooks open one connection per notification.
File paths
File tools now stay inside the folder you work in, unless you give them another root.
- FastContext search tools, MCP file tools, the wrapper
list_files, and the screenshot, crawl and dataset helpers stay inside the current directory unless given a root. - The
grep_search,glob_filesandglob_directoriestools default to the current directory.PRAISONAI_WORKSPACEsets another root. multiedit(workspace_root=...)may only narrow the current directory, not widen it.- Recipe registry names and versions, and action-orchestrator file steps, resolve only inside their own folder.
FileTools.list_filesskips matches reached through a symlink that leaves the folder.- A project rule file's
@~/import reads only Markdown files in your home folder. User-level rule files are unchanged. - Memory checkpoints skip, and restores refuse, paths outside the current directory.
- Recipe
trace_namevalues with/,\or..are refused. The run still completes, without history. - Recipe bundles that contain links fail to install on a Python without the
tarfiledata filter. - Bot
send_messageattachments must be inside the agent workspace, the current directory orallow_roots. - Bot custom commands read
@fileonly under the bot's current directory. - The CLI
SandboxExecutor(BASIC and STRICT) refuses../,~and quoted paths into blocked folders, and paths outsideallowed_paths. Absolute paths inside its run directory are allowed.
Project-file trust
A project file is a file in the folder you run in, such as .praisonai/config.yaml, praisonai.yaml, or command and agent front matter. It may tune behaviour. It can no longer grant a capability. Those settings now count only from your user config (~/.praisonai), the environment or code.
- MCP servers named in a project file start only if their command line is listed under
mcp.trusted_serversin~/.praisonai/config.yaml. - An MCP
urlthat is not a URL never starts a process. - A project file can no longer set the model endpoint or API key, open the project-plugin gate, turn on
!cmd`` shell expansion, addallowpermission rules, or send `${VAR}` values to an untrusted remote MCP server. Each ignored key logs a warning that names the user setting to use instead. PRAISONAI_ALLOW_LOCAL_TOOLSalone no longer loads an included recipe'stools.pyfrom outside the current directory. That needsPRAISONAI_ALLOW_TEMPLATE_TOOLS=true.create_tool_registry_with_overrides(tools_sources=...)needsPRAISONAI_ALLOW_TEMPLATE_TOOLS=true.- CLI "always allow" and "always deny" choices now live in
$PRAISONAI_HOME/permissions/projects/<id>. Old copies inside a project are ignored with a warning.
Approvals
- Tools that send or act for you need approval by default:
send_emailand the other mail-sending tools,send_message,ask_conversation, mail drafts, archive andcreate_inbox,schedule_*changes, andexecute_code_with_tools. In a terminal you are asked. With no way to ask, the call is denied. Bots withauto_approve_toolsare unchanged. - A tool with the same name as one of these is gated the same way.
- "This session" and "always" grants for tools other than shell and file tools cover the same arguments only.
- A skill's
allowed-toolspre-approves only low-risk tools. PolicyEngine(default_action="deny")denies resources that no rule matches. YAMLmatch:rules match only their own resource.- MCP
allowed_toolsanddisabled_toolsalso block at call time, not only in the tool list. - MCP tool output is marked as external content for the model.
- Recipes whose list-form or
roles:agents use a tool that is denied by default need it intools.allow. - A deep-copied Agent asks for its own session approval.
execute_codealways runs in the sandbox. The model no longer sees asandbox_modeoption.
Sandboxes and child environment
SubprocessSandboxraisesUnenforceablePolicyErrorwhen asked forallow_network=Falseorallow_file_write=False(includingSecurityPolicy.strict()), because it cannot enforce them.SandboxConfig.subprocess()now defaults toallow_network=True. Use the Docker or Sandlock backend to block network or writes.- With
allow_subprocess=False(the default):execute(language="bash")is refused; Python that importsmultiprocessingor callsos.fork,os.exec*oros.spawn*is refused; a computedimportlib.import_module(name)is refused when imports are restricted. - Sandbox command...