GHSA-9752-mhqh-h34f: npm PraisonAI AgentOS exposes unauthenticated agent listing and invocation
Summary
The published npm package praisonai ships a TypeScript AgentOS HTTP server that defaults to host: "0.0.0.0" and registers sensitive agent routes without any authentication or authorization middleware.
When a developer starts AgentOS, a network attacker who can reach the service can:
- read configured agent names, roles, and the first 100 characters of each agent's instructions through GET /api/agents; and
- invoke the selected agent through POST /api/chat without credentials.
This is distinct from the existing Python/PyPI AgentOS and API-server advisories. The affected package here is npm:praisonai; the current published npm package is 1.7.1, and the same TypeScript source is still present in refreshed origin/main at v4.6.58.
Technical Details
AgentOSConfig exposes host, CORS, and API-prefix settings but no authentication token, auth mode, or authorization callback.
Relevant current-head source:
src/praisonai-ts/src/os/config.ts
26: host?: string; // default: "0.0.0.0"
35: corsOrigins?: string[]; // default: ["*"]
66: export const DEFAULT_AGENTOS_CONFIG = {
68: host: '0.0.0.0',
71: corsOrigins: ['*'],
AgentOS._createApp() registers JSON parsing and CORS handling, then immediately registers routes. There is no middleware between body parsing and route registration that validates an API key, bearer token, session, origin-bound secret, or any other credential.
Relevant current-head source:
src/praisonai-ts/src/os/agentos.ts
179: app.use(express.json());
182: // Add CORS middleware
204: // Register routes
205: this._registerRoutes(app);
The sensitive routes are then exposed:
src/praisonai-ts/src/os/agentos.ts
235: app.get(${apiPrefix}/agents, ...)
240: instructions: agent.instructions ? ... : null
250: app.post(${apiPrefix}/chat, ...)
273: const response = await agent.chat(message);
331: const host = options.host || this.config.host;
338: this._server = app.listen(port, host, ...)
Because the default host is 0.0.0.0, await app.serve({ port: 8000 })
Details
Original advisory: https://github.com/advisories/GHSA-9752-mhqh-h34f
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-57140 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-xm43-3m56-w3wf: Ghost: Paid gift memberships obtainable at minimal cost via the donations feature2026-08-04
- mediumGHSA-chgm-3698-jm42: Ghost: Member existence leak via magic link sign-in response2026-08-04
- highGHSA-xpp7-93x6-v29m: XSS in Ghost's ActivityPub client2026-08-04
- mediumGHSA-7mpp-r37j-x5wh: Ghost: Session Fixation in Ghost Admin2026-08-04
- mediumGHSA-cjc9-q5gf-327p: Ghost: Theme Upload Path Traversal2026-08-04