Skip to content
HighVulnerability

GHSA-r7v3-x45f-g7hp: PraisonAI: [Auth Bypass] `praisonai serve agents --api-key` is silently ignored — agent-invocation routes (`POST /agents`, `POST /agents/{agent_name}`) run unauthenticated

Published
Record updated
View JSON
Affected
  • PraisonAI < 4.6.58
Fixed in
4.6.58
  • released June 13, 2026, 73 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

The `praisonai serve agents` command accepts `--api-key` and forwards it to `ServeHandler`, but `_create_agents_app()` never reads `config["api_key"]` and attaches no auth dependency or middleware to its direct routes. As a result, unauthenticated network callers can invoke registered agents through `POST /agents` and `POST /agents/{agent_name}` even when the operator sets `--api-key`, and requests with missing, wrong, or empty credentials all reach `agent.start()`. The existing `verify_token` dependency in `praisonai.api.agent_invoke` protects the `/api/v1/...` routes in the same app, but the direct routes do not use it, and `verify_token` reads the `CALL_SERVER_TOKEN` environment variable rather than the CLI option.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.