Home / discourse / discourse / CVE-2026-72731
CVE-2026-72731: is it exploited, and which versions of discourse are affected and fixed?
CVE-2026-72731 is a SQL injection vulnerability in discourse. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: discourse < 2026.1.7, discourse >= 2026.6.0-latest, < 2026.6.2, discourse >= 2026.7.0-latest, < 2026.7.1 and 1 more (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-72731?
Discourse: Strip SQL comments and use non-recursive parameter interpolation in Data Explorer
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/discourse_data_explorer/data_explorer.rb and plugins/discourse-data-explorer/lib/discourse_data_explorer/workflows/sql_action/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.
From the CVE record by GitHub_M, last updated August 10, 2026, 16:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| discourse | discourse | < 2026.1.7 >= 2026.6.0-latest, < 2026.6.2 >= 2026.7.0-latest, < 2026.7.1 >= 2026.8.0-latest, < 2026.8.0-latest.1 |
As the CVE record by GitHub_M states it, last updated August 10, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-72731?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-72731 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, August 10, 2026)
- EPSS
- 0.23% probability of exploitation activity in the next 30 days, percentile 14.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/discourse/discourse/security/advisories/GHSA-wm63-83xp-59r5 x_refsource_CONFIRM
- https://github.com/discourse/discourse/commit/2bdab888cef561348470dee204a4879d83fbb5c3 x_refsource_MISC
- https://github.com/discourse/discourse/commit/3dc7f0da7aa18548281152e285244efb1cc8ad0d x_refsource_MISC
- https://github.com/discourse/discourse/commit/674ba6fc64184fd7d8e21183c5d8cb22367faa6e x_refsource_MISC
- https://github.com/discourse/discourse/commit/ce9ccf24ec3538172dc8f8199728e08f63e57693 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 10, 2026
- Published
- August 10, 2026, 16:25 UTC
- CVE record updated
- August 10, 2026, 16:55 UTC by GitHub_M
- NVD
- Deferred, last modified September 8, 2026, 20:54 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect discourse?
- Oct 22, 2026CVE-2017-20290 Discourse: cross-site scripting (XSS)
- Oct 14, 2026CVE-2026-91157 discourse: information disclosure
- Oct 14, 2026CVE-2026-91156 discourse: missing authorization
- Oct 14, 2026CVE-2026-91159 discourse: cross-site scripting (XSS)
- Sep 24, 2026CVE-2026-91119 discourse: cross-site scripting (XSS)
- Sep 24, 2026CVE-2026-91121 discourse: cross-site scripting (XSS)
- Sep 24, 2026CVE-2026-91120 discourse: cross-site scripting (XSS)
- Sep 24, 2026CVE-2026-91132 discourse: origin not validated
Questions about CVE-2026-72731
Is CVE-2026-72731 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of discourse are affected by CVE-2026-72731?
discourse < 2026.1.7, discourse >= 2026.6.0-latest, < 2026.6.2, discourse >= 2026.7.0-latest, < 2026.7.1 and discourse >= 2026.8.0-latest, < 2026.8.0-latest.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2026-72731?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-72731?
High (7.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-72731?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.