Skip to content
Heist/ feed
Back to feed
Medium

Discourse has a poll authorization bypass via post_id array parameter

Type: advisorySources: OSV

Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, an authorization bypass in the poll plugin allowed authenticated users to vote on, remove votes from, or toggle the open/closed status of polls they did not have access to. By passing post_id as an array (e.g. post_id[]=&post_id[]=), the authorization check resolves to the accessible post while the poll lookup resolves to a different post's poll. This affects the vote, remove_vote, and toggle_status endpoints in DiscoursePoll::PollsController. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-31805
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:52 UTC · Revision 1

Source evidence

Discourse has a poll authorization bypass via post_id array parameter

core-osv · Original source

Published 20 Mar 2026, 03:07 UTC

Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, an authorization bypass in the poll plugin allowed authenticated users to vote on, remove votes from, or toggle the open/closed status of polls they did not have access to. By passing post_id as an array (e.g. post_id[]=&post_id[]=), the authorization check resolves to the accessible post while the poll lookup resolves to a different post's poll. This affects the vote, remove_vote, and toggle_status endpoints in DiscoursePoll::PollsController. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch.

osv:CVE-2026-31805
Complete source record
{
  "id": "e3960cca7aadabec6fc805616620eaf578ccce0dd1f8cd0d45967254bdeadbf8",
  "url": "https://osv.dev/vulnerability/CVE-2026-31805",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Discourse has a poll authorization bypass via post_id array parameter",
    "summary": "Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, an authorization bypass in the poll plugin allowed authenticated users to vote on, remove votes from, or toggle the open/closed status of polls they did not have access to. By passing post_id as an array (e.g. post_id[]=&post_id[]=), the authorization check resolves to the accessible post while the poll lookup resolves to a different post's poll. This affects the vote, remove_vote, and toggle_status endpoints in DiscoursePoll::PollsController. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch.",
    "evidence": "osv:CVE-2026-31805",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-31805",
      "aliases": [
        "BIT-discourse-2026-31805",
        "CVE-2026-31805",
        "GHSA-fgxm-prjv-g823"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/discourse/discourse",
              "type": "GIT",
              "events": [
                {
                  "introduced": "322d3c0ac6a8f133b3f82875e9dbbe310f638c1b"
                },
                {
                  "fixed": "808b2ac23d8ff421563b40203091026732471c60"
                },
                {
                  "introduced": "f7cec86997edc21d6074ceb7666f7e2e6e1b1fdf"
                },
                {
                  "fixed": "f38464e46df1b8c51f7d60826502476908d6bb2b"
                },
                {
                  "introduced": "896e810e1b296478bba91559a8fc89a9926f11fe"
                },
                {
                  "fixed": "1a6b3cdd8939053f485a60a6ea004a40878392c4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2026.1.0"
                      },
                      {
                        "fixed": "2026.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2026.2.0"
                      },
                      {
                        "fixed": "2026.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:discourse:discourse:2026.3.0:*:*:*:latest:*:*:*",
                    "range": [
                      {
                        "introduced": "2026.3.0"
                      },
                      {
                        "last_affected": "2026.3.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1a6b3cdd8939053f485a60a6ea004a40878392c4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2026.3.0",
            "= 2026.3.0-latest.1",
            "v2026.1.1",
            "v2026.2.0",
            "v2026.3.0-latest",
            "v2026.1.0",
            "stable",
            "esr",
            "v2026.2.0-latest",
            "v2026.1.0-latest"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31805.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.983019875Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31805.json",
        "https://github.com/discourse/discourse/security/advisories/GHSA-fgxm-prjv-g823",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31805",
        "https://github.com/discourse/discourse/commit/1a6b3cdd8939053f485a60a6ea004a40878392c4"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20",
          "CWE-863"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31805.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31805",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494654,
  "published_at": "2026-03-20T03:07:14.755+00:00"
}