PT-2026-81320 · Praisonai · Praisonai
CVSS v3.1
6.9
Medium
| Vector | AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
PraisonAI versions prior to 4.6.58
Description
The MCP HTTP Stream transport in PraisonAI uses an unsafe prefix match when validating the
Origin header via the validate origin() method. The validation logic accepts any origin that starts with an allowed value, meaning an attacker-controlled origin such as http://localhost.evil.example can bypass the localhost allowlist because it starts with http://localhost.When the MCP HTTP Stream server is started without an API key (the CLI default), a malicious webpage can trigger unauthenticated
tools/call requests against a locally running server. This allows the execution of exposed tools, such as praisonai.files.create(), which can read local files, or praisonai.todo.add(), which can modify local state files.Recommendations
Update PraisonAI to version 4.6.58 or later.
Configure a strong API key for the MCP server to enforce authentication.
Explicitly define a strict list of
allowed-origins instead of relying on the default localhost allowlist.Exploit
Fix
Origin Validation Error
Missing Authentication
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Praisonai