/

CVE-2026-56835

Severity:

HIGH RISK

(8.3)

Missing Authorization (CWE-862) in PraisonAI Slack Bot

CVE-2026-56835

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862, CWE-863

Impact:

Unauthorized Agent Invocation

Severity:

HIGH RISK

(8.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PraisonAI's Slack bot enforces configured user, channel, and unknown-user restrictions for ordinary message events but may omit those checks for app mention events.

A Slack user who can mention the bot in an available channel may therefore trigger the configured agent despite not being authorized, potentially causing unintended agent actions or access to connected capabilities.

PraisonAI's Slack bot enforces configured user, channel, and unknown-user restrictions for ordinary message events but may omit those checks for app mention events.

A Slack user who can mention the bot in an available channel may therefore trigger the configured agent despite not being authorized, potentially causing unintended agent actions or access to connected capabilities.

Affected context

The issue occurs in PraisonAI deployments that use the Slack bot integration and configure authorization controls such as allowed users, allowed channels, or an unknown-user denial policy. It is specific to the app_mention event path, where authorization behavior may differ from the normal message event handler.

The issue occurs in PraisonAI deployments that use the Slack bot integration and configure authorization controls such as allowed users, allowed channels, or an unknown-user denial policy. It is specific to the app_mention event path, where authorization behavior may differ from the normal message event handler.

Exploit preconditions

  • Attack surface: Slack app mention events handled by the PraisonAI bot
  • Required access: Ability to participate in a Slack channel where the app is present and mention the bot
  • Trigger point: Processing of an app_mention event
  • Why exploitation is possible: The mention-event handler may invoke the configured agent without applying the authorization checks enforced by the adjacent normal message handler
  • Attack surface: Slack app mention events handled by the PraisonAI bot
  • Required access: Ability to participate in a Slack channel where the app is present and mention the bot
  • Trigger point: Processing of an app_mention event
  • Why exploitation is possible: The mention-event handler may invoke the configured agent without applying the authorization checks enforced by the adjacent normal message handler

Why this happens

The underlying bug is an inconsistent authorization boundary between two event-handling paths. Authorization decisions are applied to ordinary message events but are not equivalently enforced before processing app mentions.

This maps primarily to CWE-862: Missing Authorization, because a protected agent action can be reached without validating whether the requester and channel are permitted. The behavior is also related to CWE-863: Incorrect Authorization, where authorization logic exists but is applied incorrectly or inconsistently.

The underlying bug is an inconsistent authorization boundary between two event-handling paths. Authorization decisions are applied to ordinary message events but are not equivalently enforced before processing app mentions.

This maps primarily to CWE-862: Missing Authorization, because a protected agent action can be reached without validating whether the requester and channel are permitted. The behavior is also related to CWE-863: Incorrect Authorization, where authorization logic exists but is applied incorrectly or inconsistently.

Potential impact

  • Unauthorized users may trigger configured PraisonAI agents
  • Agents may perform actions using connected tools or integrations
  • Restricted channels may be able to invoke workflows despite policy settings
  • Sensitive information could be exposed through agent responses
  • Downstream systems or data may be altered by unintended agent activity
  • Unauthorized users may trigger configured PraisonAI agents
  • Agents may perform actions using connected tools or integrations
  • Restricted channels may be able to invoke workflows despite policy settings
  • Sensitive information could be exposed through agent responses
  • Downstream systems or data may be altered by unintended agent activity

General mitigation guidance

Mitigation generally focuses on making authorization centralized, consistent, and mandatory across every Slack event type.

Common defensive patterns include:

  • Applying the same user, channel, and unknown-user policy before processing messages and app mentions
  • Centralizing authorization decisions in a shared guard rather than duplicating checks across handlers
  • Defaulting to deny when identity, channel membership, or policy evaluation is ambiguous
  • Limiting agent tools and integrations according to least-privilege principles
  • Separating message parsing from agent execution until authorization succeeds
  • Testing each supported event type against the same access-control policy

Mitigation generally focuses on making authorization centralized, consistent, and mandatory across every Slack event type.

Common defensive patterns include:

  • Applying the same user, channel, and unknown-user policy before processing messages and app mentions
  • Centralizing authorization decisions in a shared guard rather than duplicating checks across handlers
  • Defaulting to deny when identity, channel membership, or policy evaluation is ambiguous
  • Limiting agent tools and integrations according to least-privilege principles
  • Separating message parsing from agent execution until authorization succeeds
  • Testing each supported event type against the same access-control policy

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and code review checks for event handlers that invoke agents without shared authorization middleware
  • Comparisons of authorization logic across message, mention, command, and interaction handlers
  • Tests covering unauthorized users, disallowed channels, and unknown-user policies for every event path
  • Runtime monitoring for agent invocations whose Slack actor or channel is outside configured policy
  • Policy enforcement requiring authorization checks before access to tools, data sources, or external actions

Automated security review tools may help identify handler paths that reach sensitive operations without a consistent authorization guard.

Organizations can look for this class of issue through:

  • Static analysis and code review checks for event handlers that invoke agents without shared authorization middleware
  • Comparisons of authorization logic across message, mention, command, and interaction handlers
  • Tests covering unauthorized users, disallowed channels, and unknown-user policies for every event path
  • Runtime monitoring for agent invocations whose Slack actor or channel is outside configured policy
  • Policy enforcement requiring authorization checks before access to tools, data sources, or external actions

Automated security review tools may help identify handler paths that reach sensitive operations without a consistent authorization guard.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-qvpf-j64c-jmhr

Frequently asked

questions

Yes, within the scope of a Slack workspace where a user can mention the bot in a channel containing the Slack app. Exploitation does not require direct access to the PraisonAI host.

No. The issue is that an app mention may be processed even when the sender is not in the configured allowed-user list or the channel is not allowed.

Ensure every Slack event path performs the same centralized authorization check before invoking an agent or exposing connected capabilities.

Maintain deny-by-default policies, test all event types with both authorized and unauthorized identities, and monitor agent invocations for policy violations.

Yes, within the scope of a Slack workspace where a user can mention the bot in a channel containing the Slack app. Exploitation does not require direct access to the PraisonAI host.

No. The issue is that an app mention may be processed even when the sender is not in the configured allowed-user list or the channel is not allowed.

Ensure every Slack event path performs the same centralized authorization check before invoking an agent or exposing connected capabilities.

Maintain deny-by-default policies, test all event types with both authorized and unauthorized identities, and monitor agent invocations for policy violations.

Find out what's already
exploitable in your codebase.