CVE-2026-72731: Discourse: Strip SQL comments and use non-recursive parameter interpolation in Data Explorer

Published Aug 10, 2026
·
Updated

Discourse is an open-source discussion platform. From 2026.1.0-latest until 2026.1.7, 2026.6.2, 2026.7.1, and 2026.8.0-latest.1, anyone able to run a parameterized Data Explorer query, including non-staff members of a group a query is shared with, could craft parameter values that escaped the intended query and executed arbitrary SQL through plugins/discourse-data-explorer/lib/discoursedataexplorer/dataexplorer.rb and plugins/discourse-data-explorer/lib/discoursedataexplorer/workflows/sqlaction/v1.rb. Recursive parameter interpolation allowed one parameter value to introduce another parameter, and parameter declarations in SQL comments could be used to inject a statement. Queries run in a read-only transaction, so data could not be modified, but any table could be read. This issue is fixed in versions 2026.1.7, 2026.6.2, 2026.7.1, and 2026.8.0-latest.1.

Affected Software

1 affected component
Discourse Discourse>2026.1.0<=2026.1.7, =2026.6.2, =2026.7.1, =2026.8.0-latest.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade discourse to a version that resolves this vulnerability.

    Fixed in 2026.1.7
  2. Upgrade

    Upgrade discourse to a version that resolves this vulnerability.

    Fixed in 2026.6.2
  3. Upgrade

    Upgrade discourse to a version that resolves this vulnerability.

    Fixed in 2026.7.1
  4. Upgrade

    Upgrade discourse to a version that resolves this vulnerability.

    Fixed in 2026.8.0-latest.1

Event History

Aug 10, 2026
CVE Published
via MITRE·04:25 PM
Data Sourced
via MITRE·04:25 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72731?

The severity of CVE-2026-72731 is classified as high with a score of 7.1.

2

How can I mitigate CVE-2026-72731?

To mitigate CVE-2026-72731, upgrade Discourse to versions 2026.1.8 or later, where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-72731?

CVE-2026-72731 is an SQL Injection vulnerability affecting the Data Explorer feature in Discourse.

4

Who is affected by CVE-2026-72731?

CVE-2026-72731 affects users who are able to run parameterized queries in the Data Explorer, including non-staff members of a shared group.

5

What are the potential impacts of CVE-2026-72731?

The potential impacts of CVE-2026-72731 include unauthorized data access and manipulation by exploiting SQL comment stripping and parameter interpolation issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203