Discourse AI Helper Insecure Direct Object Reference Vulnerability

Vulnerability

A vulnerability in the Discourse AI suggestion endpoints for topics, specifically in versions 3.5.0 and below, allows authenticated users to access information from restricted topics. By altering the 'topic_id' in API requests to the AI suggestion endpoints for 'Title', 'Category', and 'Tags', users could retrieve data from topics they were not authorized to view. This issue has been addressed in Discourse version 3.5.1. The vulnerability arises from insufficient access controls, enabling users to exploit the AI suggestion feature to gain unauthorized insights into private or restricted discussions.

Impact

Exploitation of this vulnerability could lead to unauthorized access to information from restricted topics, allowing users to view details they would not normally be privy to.

Reproduction

To reproduce this vulnerability, an authenticated user can send a request to the Discourse AI suggestion endpoints for 'Title', 'Category', or 'Tags', including a 'topic_id' that corresponds to a restricted topic. The response will contain information from the targeted topic, which the user is not authorized to access.

Remediation

Users can upgrade to Discourse version 3.5.1 or later. Additionally, group access to the AI helper feature can be restricted using the 'composer_ai_helper_allowed_groups' and 'post_ai_helper_allowed_groups' site settings.

Added: Oct 1, 2025, 7:20 PM
Updated: Oct 1, 2025, 7:20 PM

Vulnerability Rating

Custom Algorithm
spread
2.4
impact
2.5
exploitability
4.3
remediation
8.3
relevance
0.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.