Discourse vulnerabilities
159 known CVE vulnerabilities in Discourse, translated and rated.
- CVE-2026-27936Medium
In Discourse prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, a restriction bypass allows restricted post action counts to be disclosed to non-privileged users through a crafted request. These versions contain a patch.
- CVE-2026-27935Medium
Discourse (versions prior to 2026.3.0-latest.1, 2026.2.1, and 2026.1.2) has a vulnerability in an API endpoint that discloses private topic metadata of admin users to moderator users even if the moderators do not have access to the private topics.
- CVE-2026-27740Medium
Discourse, an open-source discussion platform, in versions prior to 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 has a cross-site scripting vulnerability arising because the system trusts raw output from an AI Large Language Model (LLM) and renders it using htmlSafe in the Review Queue interface without adequate sanitization. An attacker can use Prompt Injection techniques to force the AI to return a malicious payload (e.g., tags), which executes when a Staff member (Admin/Moderator) views the flagged post in the Review Queue. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch.
- CVE-2026-27570Medium
Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, the onebox method in the SharedAiConversation model renders the conversation title directly into HTML without proper sanitization. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. As a workaround, tighten access by changing the `ai_bot_public_sharing_allowed_groups` site setting.
- CVE-2026-27491Medium
Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, a type coercion issue in a post actions API endpoint allowed non-staff users to issue warnings to other users. Warnings are a staff-only moderation feature. The vulnerability required the attacker to be a logged-in user and to send a specifically crafted request. No data exposure or privilege escalation beyond the ability to create unauthorized user warnings was possible. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. No known workarounds are available.
- CVE-2026-27454Medium
Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, requesting /posts/:id.json?version=X bypassed authorization checks on post revisions. The display_post method called post.revert_to directly without verifying whether the revision was hidden or if the user had permission to view edit history. This meant hidden revisions (intentionally concealed by staff) could be read by any user by simply enumerating version numbers. Starting in versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, Discourse looks up the PostRevision and call guardian.ensure_can_see! before reverting, consistent with how the /posts/:id/revisions/:revision endpoint already authorizes access. No known workarounds are available.
- CVE-2026-27166Medium
Discourse is an open source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1 and 2026.1.2, insufficient cleanup in the default Codepen allowed iframes value allows an attacker to trick a user into changing the URL of the main page. This issue has been fixed in versions 2026.3.0-latest.1, 2026.2.1 and 2026.1.2.
- CVE-2026-28227Low
Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, TL4 users can publish topics into staff-only categories via the `publish_to_category` topic timer, bypassing authorization checks. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue. No known workarounds are available.
- CVE-2026-28219Medium
Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0 has an improper authorization check in topic management logic, allowing authenticated users to modify privileged attributes of their topics. By manipulating parameters in a PUT or POST request, a regular user can elevate a topic's status to a site-wide notice or banner, bypassing intended administrative restrictions.
- CVE-2026-27154Medium
Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, a user full name can be evaluated as raw HTML when display_name_on_posts is true and prioritize_username_in_ux is false. Editing a post of a malicious user would trigger an XSS. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue. No known workarounds are available.
- CVE-2026-27153Low
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, moderators could export user Chat DMs via the CSV export endpoint by exploiting an overly permissive allowlist in `can_export_entity?`. The method allowed moderators to export any entity not explicitly blocked instead of restricting to an explicit allowlist. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue; no known workarounds are available.
- CVE-2026-27162Medium
Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, posts_nearby was checking topic access but then returning all posts regardless of type, including whispers that should only be visible to whisperers. Use Post.secured(guardian) to properly filter post types based on user permissions.
- CVE-2026-27152Low
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, a DM communication-preference bypass exists when adding members via `Chat::AddUsersToChannel` — a user could add targets who have blocked/ignored/muted them to an existing DM channel, bypassing per-recipient PM restrictions enforced during DM channel creation. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue; no known workarounds are available.
- CVE-2026-27151Low
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, the `move_posts` action only checked `can_move_posts?` on the source topic but never validated write permissions on the destination topic. This allowed TL4 users and category group moderators to move posts into topics in categories where they lack posting privileges (e.g., read-only categories or categories with group-restricted write access). Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue; no known workarounds are available.
- CVE-2026-27150Low
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, missing `validate_before_create` authorization in Data Explorer's `QueryGroupBookmarkable` allows any logged-in user to create bookmarks for query groups they don't have access to, enabling metadata disclosure via bookmark reminder notifications. Versions 2025.12.2, 2026.1.1, and 2026.2.0 fix this issue and also ensure `validate_before_create` throws NotImplementedError in BaseBookmarkable if not implemented; no known workarounds are available.
- CVE-2026-27149Medium
Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, SQL injection in PM tag filtering (list_private_messages_tag) allows bypassing tag filter conditions, potentially disclosing unauthorized private message metadata.
- CVE-2026-27021Medium
In Discourse's poll plugin, the voters endpoint lacked post visibility checks, allowing unauthorized access to voters' details for polls in any post. The issue affects versions prior to 2025.12.2, 2026.1.1, and 2026.2.0. No known workarounds are available.
- CVE-2026-26979Low
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, TL4 users can close, archive, and pin topics in private categories they don't have access to. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue. No known workarounds are available.
- CVE-2026-26973Medium
Discourse is an open source discussion platform. Versions prior to 2025.12.2, 2026.1.1, and 2026.2.0 have an IDOR in ReviewableNotesController. When enable_category_group_moderation is enabled, a user belonging to a category moderation group can create or delete their own notes on any reviewable in the system, including reviewables in categories they do not moderate. The controller used an unscoped Reviewable.find and the ensure_can_see guard only checked whether the user could access the review queue in general, not whether they could access the specific reviewable. Only instances with enable_category_group_moderation enabled are affected. Staff users (admins/moderators) are not impacted as they already have access to all reviewables. The issue is patched in versions 2025.12.2, 2026.1.1, and 2026.2.0 by scoping the reviewable lookup through Reviewable.viewable_by(current_user). As a workaround, disable the enable_category_group_moderation site setting. This removes the attack surface as only staff users will have access to the review queue.
- CVE-2026-26265High
Discourse before versions 2025.12.2, 2026.1.1, and 2026.2.0 contains an IDOR vulnerability in the directory items endpoint. It allows any user, including anonymous users, to retrieve private user field values for all users in the directory.
- CVE-2026-26077Medium
In Discourse prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, several webhook endpoints (SendGrid, Mailjet, Mandrill, Postmark, SparkPost) in WebhooksController accepted requests without a valid authentication token when no token was configured. This allowed unauthenticated attackers to forge webhook payloads and inflate user bounce scores, potentially disabling legitimate user emails; the Mailpace endpoint had no token validation at all.
- CVE-2026-24742Medium
Discourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, non-admin moderators can view sensitive information in staff action logs that should be restricted to administrators only. The exposed information includes webhook payload URLs and secrets, API key details, site setting changes, private message content, restricted category names and structures, and private chat channel titles.
- CVE-2026-23743High
In Discourse versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, permalinks pointing to access-restricted resources (private topics, categories, posts, or hidden tags) were redirecting users to URLs containing the resource slug, even when the user didn't have access to view the resource. This leaked potentially sensitive information (e.g., private topic titles) via the redirect Location header and the 404 page's search box.
- CVE-2026-21865Medium
Discourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, moderators can convert some personal messages to public topics when they shouldn't have access. This issue is patched in versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0.
- CVE-2025-69289Medium
Discourse is an open source discussion platform. A privilege escalation vulnerability in versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 allows a non-admin moderator to bypass email-change restrictions, enabling takeover of non-staff accounts. This issue is patched in versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0.
- CVE-2025-69218Medium
In Discourse versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, moderators can access the top_uploads admin report which should be restricted to admins only. The report displays direct URLs to all uploaded files, including sensitive content such as user data exports and admin backups.
- CVE-2025-68934Medium
In Discourse versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, authenticated users can submit crafted payloads to /drafts.json that cause O(n^2) processing in Base62.decode, tying up workers for 35–60 seconds per request. This affects all users as the shared worker pool becomes exhausted.
- CVE-2025-68933Medium
Discourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, non-admin moderators with the `moderators_change_post_ownership` setting enabled can change ownership of posts in private messages and restricted categories they cannot access, then export their data to view the content. This is a broken access control vulnerability affecting sites that grant moderators post ownership transfer permissions. This issue is patched in versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0. The patch adds visibility checks for both the topic and posts before allowing ownership transfer. As a workaround, disable the `moderators_change_post_ownership` site setting to prevent non-admin moderators from using the post ownership transfer feature.
- CVE-2025-68666Medium
Discourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, user archives are viewable by users with moderation privileges even though moderators should not have access to the archives. Private topic/post content made by users is leaked through the archives, leading to a breach of confidentiality.
- CVE-2025-68662High
Discourse, an open source discussion platform, contains a vulnerability in versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0. The issue involves hostname validation in the FinalDestination component, which could allow bypassing SSRF protections under certain conditions.
- CVE-2025-68660Medium
Discourse versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 have an endpoint that lets any authenticated user bypass ai_discover_persona access controls and gain ongoing DM access to personas that may be wired to staff-only categories, RAG document sets, or automated tooling. The controller also accepts arbitrary user_id, allowing an attacker to impersonate other accounts and trigger unwanted AI conversations on their behalf.
- CVE-2025-68659Medium
Discourse is an open source discussion platform. Versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 have an application level denial of service vulnerability in the username change functionality at try.discourse.org. The vulnerability allows attackers to cause noticeable server delays and resource exhaustion by sending large JSON payloads to the username preference endpoint PUT /u//preferences/username, resulting in degraded performance for other users and endpoints.
- CVE-2025-68479High
Discourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, some subscription endpoints lack proper checking for ownership before making changes. This issue is patched in versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0.
- CVE-2025-67723Medium
Discourse is an open source discussion platform. Versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 have a content-security-policy-mitigated cross-site scripting vulnerability on the Discourse Math plugin when using its KaTeX variant. This issue is patched in versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0. As a workaround, the Discourse Math plugin can be disabled, or the Mathjax provider can be used instead of KaTeX.
- CVE-2025-66488Medium
Discourse is an open source discussion platform. A vulnerability present in versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 affects anyone who uses S3 for uploads. While scripts may be executed, they will only be run in the context of the S3/CDN domain, with no site credentials.
- CVE-2025-64528Medium
Discourse is an open source discussion platform. Prior to versions 3.5.3, 2025.11.1, and 2025.12.0, an attacker who knows part of a username can find the user and their full name via UI or API, even when `enable_names` is disabled. Versions 3.5.3, 2025.11.1, and 2025.12.0 contain a fix.
- CVE-2025-61598Medium
Discourse is an open source discussion platform. Versions before 3.6.2 and 3.6.0.beta2 were missing the default Cache-Control response header (no-store, no-cache) on error responses. This may cause unintended caching by proxies, potentially leading to cache poisoning attacks.
- CVE-2025-59337Medium
Discourse versions 3.5.0 and below allow malicious meta-commands to be embedded in a backup dump and executed during restore. In multisite setups, this allowed an admin of one site to access data or credentials from other sites. The issue is fixed in version 3.5.1.
- CVE-2025-58055Medium
Discourse versions 3.5.0 and below allow authenticated users to extract information about topics they are not authorized to access by modifying the topic_id value in requests to the AI suggestion endpoints (Title, Category, Tags).
- CVE-2025-58054Low
Discourse versions 3.5.0 and below are vulnerable to XSS attacks through parsing and rendering of chat channel titles and chat thread titles via the quote message functionality when using the rich text editor. This issue is fixed in version 3.5.1.
- CVE-2025-54411Medium
Discourse, an open-source discussion platform, has an XSS vulnerability in the welcome banner user name string for logged-in users, affecting the user themselves or an admin impersonating them. Admins can temporarily remove the preferred_display_name placeholder from the welcome_banner.header.logged_in_members site text or avoid impersonating users. Fixed in 3.5.0.beta8.
- CVE-2025-49845High
Discourse is an open-source discussion platform. The visibility of posts typed `whisper` is controlled via the `whispers_allowed_groups` site setting. Only users that belong to groups specified in the site setting are allowed to view posts typed `whisper`. However, it has been discovered that users of versions prior to 3.4.6 on the `stable` branch and prior to 3.5.0.beta8-dev on the `tests-passed` branch can continue to see their own whispers even after losing visibility of posts typed `whisper`. This issue is patched in versions 3.4.6 and 3.5.0.beta8-dev. No known workarounds are available.
- CVE-2025-48954High
Discourse is an open-source discussion platform. Versions prior to 3.5.0.beta6 are vulnerable to cross-site scripting when the content security policy isn't enabled when using social logins. Version 3.5.0.beta6 patches the issue.
- CVE-2025-48062High
Discourse is an open-source discussion platform. Prior to version 3.4.4 of the stable branch, version 3.5.0.beta5 of the beta branch, and version 3.5.0.beta6-dev of the tests-passed branch, certain invites via email may result in HTML injection in the email body if the topic title includes HTML. This includes inviting someone (without an account) to a PM and inviting someone (without an account) to a topic with a custom message.
- CVE-2025-48053High
In Discourse prior to version 3.4.4 of the stable branch, 3.5.0.beta5 of the beta branch, and 3.5.0.beta6-dev of the tests-passed branch, sending a malicious URL in a PM to a bot user can reduce the availability of a Discourse instance. No known workarounds are available; the issue is patched in the listed versions.
- CVE-2025-46813Medium
Discourse has a data leak vulnerability affecting login-required sites deployed between specific commits. Unauthenticated users could see some private content on the homepage. Only sites deployed roughly between April 30 and May 2, 2025 are affected; stable branch is unaffected.
- CVE-2025-32376Medium
In Discourse prior to versions 3.4.3 (stable) and 3.5.0.beta3 (beta), the users limit for a DM can be bypassed, potentially allowing creation of a DM with every user on the site. The issue is patched in versions 3.4.3 and 3.5.0.beta3.
- CVE-2025-24972Medium
In Discourse, an open-source discussion platform, prior to versions 3.3.4 on the stable branch and 3.4.0.beta5 on the beta branch, under specific circumstances users could be added to group direct messages despite disabling direct messaging in their preferences. Versions 3.3.4 and 3.4.0.beta5 contain a patch.
- CVE-2025-24808Medium
Discourse before versions 3.3.4 (stable) and 3.4.0.beta5 (beta) has a race condition in the add_users_to_channel service. Parallel requests may bypass the user limit in a group DM, allowing the intended limit to be exceeded.
- CVE-2023-38685Medium
Discourse is an open source discussion platform. Prior to version 3.0.6 of the `stable` branch and version 3.1.0.beta7 of the `beta` and `tests-passed` branches, unauthorized users could obtain information about restricted-visibility topic tags.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

