CVE-2026-57139: npm PraisonAI MCPServer exposes unauthenticated HTTP tools/call
The TypeScript `MCPServer` in the npm package `praisonai`, versions 1.5.0 through 1.7.1, has an HTTP transport with no authentication. Any client that can reach the port can list and call every registered tool, read resources and fetch prompts. The package data lists 1.7.2 as the patched version.
Published Jun 18, 2026 · Updated Jul 20, 2026 · Analysis Oct 25, 2026
What an attacker can do
server.start({ port: 3000 }) runs startHttp() in src/praisonai-ts/src/mcp/server.ts. It parses each POST body and passes it to handleRequest(), which dispatches tools/call, resources/read and prompts/get. MCPServerConfig has no auth field and startHttp() ignores the Authorization header. The package ships a MCPSecurity class in mcp/security.ts with API-key policies, but the server never calls it.
listen(port) is called with no host, so Node binds the unspecified address. The proof of concept saw ::, which means all interfaces. A request with Authorization: Bearer invalid works the same as one with no header.
The attacker needs only network reach to the port. What they get depends on the tools the application registers. MCP tools often wrap files, databases, API clients, deployments, email or code execution. They run with the server process's privileges and credentials. resources/read and prompts/get can also leak application data or prompt text. The PoV called a registered admin_reset_marker tool with no credentials and with a bad token, and both calls ran.
Who is affected
npm praisonai from 1.5.0 up to and including 1.7.1. Version 1.4.0 does not export MCPServer and is not affected. Only applications that use the exported MCPServer with the HTTP transport are exposed. The stdio transport is a separate path. Check:
npm ls praisonaiThen search your code for new MCPServer( and .start({ port.
praisonai
- Ecosystem
- npm
- Affected
- >= 1.5.0, <= 1.7.1
- Fixed in
- 1.7.2
- Check
npm ls praisonai
How to fix it
The package data lists 1.7.2 as patched.
npm install [email protected]The advisory text still says no fixed version was known when the report was written, and it does not describe the 1.7.2 change. Confirm on the npm registry that 1.7.2 is published and test that an unauthenticated tools/call now returns 401. The reporter recommends fail-closed auth in MCPServerConfig, a loopback default bind, and MCPSecurity.check(...) before handleRequest(). In the meantime, block the port with a firewall or network policy, put an authenticating reverse proxy in front of the server bound to loopback, and register only the tools you need.
How to tell if you were hit
Check which address your Node process listens on for the MCP port. :: or 0.0.0.0 means it is open to the network. Look at access logs or a proxy for POST requests carrying tools/call, resources/read or prompts/get from unknown sources, especially with no Authorization header or a bogus one. Review your tool handlers' own logs for invocations you didn't expect. If a tool handler touches files, databases or external APIs, audit those systems for actions at the same times.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The published npm package praisonai exports a TypeScript MCPServer that can expose tools, resources, and prompts over an HTTP JSON-RPC transport with:
await server.start({ port: 3000 });The HTTP transport has no authentication or authorization path. MCPServerConfig does not expose an auth/security setting, startHttp() ignores the Authorization header, and every POST request is parsed and forwarded directly to handleRequest(). That request handler dispatches sensitive MCP methods such as tools/call, resources/read, and prompts/get.
The implementation also calls this.httpServer.listen(port) without a host argument. In Node.js this binds to the unspecified address; the local PoV observed { address: "::", family: "IPv6" }, making the service reachable on all interfaces on systems where the port is exposed.
This lets any network client that can reach the HTTP port list tools and invoke registered server-side tools without credentials. Supplying Authorization: Bearer invalid makes no difference.
Technical Details
MCPServerConfig exposes server metadata, tools/resources/prompts, stdio, port, and logging. It does not expose an auth token, authorization policy, MCPSecurity instance, authorization callback, or loopback-only option:
src/praisonai-ts/src/mcp/server.ts
57: export interface MCPServerConfig {
63: tools?: MCPServerTool[];
65: resources?: MCPResource[];
67: prompts?: MCPPrompt[];
69: stdio?: boolean;
73: port?: number | null;
75: logging?: boolean;handleRequest() dispatches sensitive MCP methods directly:
src/praisonai-ts/src/mcp/server.ts
203: async handleRequest(request: MCPRequest): Promise<MCPResponse> {
219: case 'tools/call':
220: result = await this.handleToolCall(params);
225: case 'resources/read':
226: result = await this.handleResourceRead(params);
231: case 'prompts/get':
232: result = await this.handlePromptGet(params);The tool dispatcher invokes the registered handler:
src/praisonai-ts/src/mcp/server.ts
285: private async handleToolCall(params?: any): Promise<any> {
288: const tool = this.tools.get(name);
298: const result = await tool.handler(args ?? {});The HTTP server parses every POST body and forwards it to handleRequest() with no authentication check:
src/praisonai-ts/src/mcp/server.ts
403: async startHttp(port: number): Promise<void> {
409: this.httpServer = http.createServer(async (req, res) => {
416: const response = await this.handleRequest(request);
434: this.httpServer.listen(port, () => {This is a guard-coverage gap because the same TypeScript package already ships a dedicated MCP security manager:
src/praisonai-ts/src/mcp/security.ts
2: * MCP Security - Authentication, authorization, and rate limiting
79: export class MCPSecurity {
132: async check(request: { path?: string; method?: string; headers?: ... })
167: const auth = headers['authorization'] ?? headers['Authorization'];
239: case 'authenticate':
303: export function createApiKeyPolicy(...)MCPServer never references that security manager in its HTTP request path.
Why This Is Not Intended Behavior
PraisonAI's MCP documentation says MCP servers allow AI models to use tools and communicate with external systems. The same page's security considerations say to use API keys in production, implement rate limiting, validate incoming requests, use HTTPS, and limit custom tool permissions.
PraisonAI's security page also documents prior breaking hardening where API servers were changed to require authentication by default and bind to 127.0.0.1 instead of 0.0.0.0. It separately lists MCP tools/call issues as security vulnerabilities.
The npm TypeScript MCPServer does the opposite:
start({ port })binds to the unspecified address;MCPServerConfighas no auth/security field;startHttp()does not inspectAuthorization;tools/list,tools/call,resources/read, andprompts/getall dispatch without authentication; andMCPSecurityexists but is not wired into the HTTP server.
This is not merely a deployment hardening suggestion. The package exposes an HTTP MCP server API and a separate security manager, but the server's own HTTP transport provides no way to enforce the documented API-key requirement.
PoV
The PoV installs the published npm package in a temporary project, starts the exported MCPServer on a local ephemeral port, and sends loopback JSON-RPC requests. It does not call any LLM provider or external service after package installation.
Run from a local reproduction checkout:
node poc/pov_poc.js 1.7.1Observed result:
{
"package": "praisonai",
"version": "1.7.1",
"mcpServerExported": true,
"bindAddress": {
"address": "::",
"family": "IPv6"
},
"initialize": {
"status": 200
},
"list": {
"status": 200,
"json": {
"result": {
"tools": [
{
"name": "admin_reset_marker",
"description": "privileged marker tool"
}
]
}
}
},
"callNoAuth": {
"status": 200,
"json": {
"result": {
"content": [
{
"text": "invoked:NO_AUTH_MARKER"
}
]
}
}
},
"callBadAuth": {
"status": 200,
"json": {
"result": {
"content": [
{
"text": "invoked:BAD_AUTH_MARKER"
}
]
}
}
},
"calls": [
"NO_AUTH_MARKER",
"BAD_AUTH_MARKER"
],
"patchedControl": {
"noAuthStatus": 401,
"withAuthStatus": 200,
"patchedCalls": [
"called"
]
}
}Interpretation:
- unauthenticated
initializereturns200; - unauthenticated
tools/listreturns the registered tool; - unauthenticated
tools/callinvokes the registered tool; - invalid
Authorization: Bearer invalidis ignored and also invokes the tool; - the server binds to the unspecified IPv6 address; and
- a minimal local wrapper that enforces a bearer token blocks the same no-auth call with
401, demonstrating that the PoV is exercising the missing authentication boundary.
PoC
The PoV section above contains the local reproduction command, input, and decisive output.
Impact
Any client that can reach the npm TypeScript MCPServer HTTP port can list and invoke all registered MCP tools without credentials.
Real impact depends on which tools, resources, and prompts the application registers. MCP tools commonly wrap filesystem operations, API clients, database queries, agent actions, deployment operations, email/Slack actions, browser automation, and code execution. Because those handlers run with the server process privileges and server-side credentials, an unauthenticated caller can drive the same actions.
resources/read and prompts/get are also unauthenticated and may disclose application data or prompt material registered by the server.
Severity
Suggested severity: Critical.
Rationale:
AV: exploitation is a direct HTTP JSON-RPC request.AC: no race, user gesture, or special state is required.PR: no credentials are required; invalid credentials are ignored.UI: no user interaction is required after the server is running.S: impact is within the authority of the MCP server process and its registered tools.C: resources, prompts, and tool-returned data may expose sensitive data.I: unauthenticated callers can drive server-side tools.A: unauthenticated callers can invoke destructive or resource-consuming tools if registered.
Suggested Fix
Recommended minimum fix:
- Add
security,auth,authRequired,apiKeys, orauthorize(req)toMCPServerConfig. - Fail closed for HTTP transport when auth is not configured, unless the caller explicitly opts into unauthenticated loopback-only development mode.
- Bind HTTP transport to
127.0.0.1by default, or require an explicit host when binding to all interfaces. - Call
MCPSecurity.check(...)or equivalent middleware before every non-health POST request reacheshandleRequest(). - Return
401for missing or invalid credentials before dispatchinginitialize,tools/list,tools/call,resources/read, orprompts/get. - Add Origin/Host protections for loopback HTTP transports to reduce DNS rebinding exposure.
- Add regression tests proving:
- no-auth
tools/listreturns401; - no-auth
tools/callreturns401and does not invoke the handler; - invalid bearer token returns
401; - valid bearer token invokes the handler;
- default
start({ port })does not bind to all interfaces without an explicit opt-in.
Affected Package/Versions
- Repository:
MervinPraison/PraisonAI - Ecosystem:
npm - Package:
praisonai - Component:
src/praisonai-ts/src/mcp/server.ts - Related unused security component:
src/praisonai-ts/src/mcp/security.ts - Current npm version checked:
1.7.1 - Refreshed
origin/mainchecked:1ad58ca02975ff1398efeda694ea2ab78f20cf3e
Confirmed affected range:
>= 1.5.0, <= 1.7.1Boundary:
1.4.0 does not export MCPServer and does not ship dist/mcp/server.js.No fixed npm version is known at the time of this report.
Version Sweep
The included sweep installs selected npm versions and checks the HTTP MCPServer path:
node poc/version_sweep_poc.jsObserved result:
1.4.0: mcpServerExported=false, hasDistMcpServer=false
1.5.0: mcpServerExported=true, hasDistMcpServer=true, noAuthToolCallInvoked=true, bindAddress=::
1.5.4: mcpServerExported=true, hasDistMcpServer=true, noAuthToolCallInvoked=true, bindAddress=::
1.6.0: mcpServerExported=true, hasDistMcpServer=true, noAuthToolCallInvoked=true, bindAddress=::
1.7.0: mcpServerExported=true, hasDistMcpServer=true, noAuthToolCallInvoked=true, bindAddress=::
1.7.1: mcpServerExported=true, hasDistMcpServer=true, noAuthToolCallInvoked=true, bindAddress=::Advisory History
Known related public advisories:
GHSA-9mqq-jqxf-grvw/CVE-2026-44336:pip:praisonaiMCPtools/callpath traversal to RCE in Pythonpraisonai mcp serve, affected<= 4.6.33.CVE-2026-47394:pip:praisonaiincomplete MCP path traversal fix affecting Python workflow/deploy handlers.- poc: deprecated Python MCP SSE Host/Origin/session issue.
- poc: npm TypeScript AgentOS missing authentication.
This report is distinct because it targets:
- ecosystem:
npm; - package:
praisonai; - component:
src/praisonai-ts/src/mcp/server.ts; - root cause: TypeScript
MCPServerHTTP transport missing auth and not usingMCPSecurity; - primitive: unauthenticated and invalid-auth JSON-RPC
tools/callinvokes arbitrary registered TypeScript MCP tools; and - affected range:
>= 1.5.0, <= 1.7.1.
The Python MCP advisories cover path traversal in specific Python MCP tool handlers. They do not cover the npm TypeScript MCPServer transport or its unwired security manager.
Credited to rexpository.
Questions
- Is praisonai 1.7.1 on npm affected by CVE-2026-57139?
Yes. The vulnerable range is 1.5.0 through 1.7.1, and the PoV confirmed 1.7.1. The package data lists 1.7.2 as the fix.
- Does a wrong bearer token block the call?
No.
startHttp()ignores theAuthorizationheader, soBearer invalidand no header both reachtools/call.- Is the Python praisonai package affected too?
This advisory covers the npm TypeScript package only. The Python package has its own advisories, for example CVE-2026-57124 for the UI's
/api/mcp/connectendpoint.- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The advisory has a local proof of concept.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-77361
obsidian-tc : Symlink read-ACL scope bypass via lexical path checks
medium4.7Oct 23, 2026CVE-2026-114126
Storybook dev server vulnerable to code injection from the local network
high8.7Oct 22, 2026CVE-2026-113731
djust: Arbitrary absolute-path file read in the find_handlers_for_template MCP tool
low3.3Oct 21, 2026CVE-2026-114125
Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites
critical9.4Oct 21, 2026CVE-2026-111770
MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
high7.7Oct 20, 2026GHSA-953h-535j-jg2v
agent-router: MCP session resume does not verify the embedded anti-hijacking subject; default Helm seed makes session IDs forgeable
medium6.8Oct 19, 2026
