Skip to content
Heist/ feed
Back to feed
Medium

Discourse vulnerable to incomplete quote causing a topic to crash in the browser

Type: advisorySources: OSV

Discourse is an open source discussion platform. Starting with version 2.9.0.beta5 and prior to version 2.9.0.beta10, an incomplete quote can generate a JavaScript error which will crash the current page in the browser in some cases. Version 2.9.0.beta10 added a fix and tests to ensure incomplete quotes won't break the app. As a workaround, the quote can be fixed via the rails console.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-39232
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 09:27 UTC · Revision 1

Source evidence

Discourse vulnerable to incomplete quote causing a topic to crash in the browser

core-osv · Original source

Published 29 Sept 2022, 20:15 UTC

Discourse is an open source discussion platform. Starting with version 2.9.0.beta5 and prior to version 2.9.0.beta10, an incomplete quote can generate a JavaScript error which will crash the current page in the browser in some cases. Version 2.9.0.beta10 added a fix and tests to ensure incomplete quotes won't break the app. As a workaround, the quote can be fixed via the rails console.

osv:CVE-2022-39232
Complete source record
{
  "id": "34b197e025e6bc817a6bb4aca4a7a0fe7ae5eeb44f1cfed2596e1f83e48c7211",
  "url": "https://osv.dev/vulnerability/CVE-2022-39232",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Discourse vulnerable to incomplete quote causing a topic to crash in the browser",
    "summary": "Discourse is an open source discussion platform. Starting with version 2.9.0.beta5 and prior to version 2.9.0.beta10, an incomplete quote can generate a JavaScript error which will crash the current page in the browser in some cases. Version 2.9.0.beta10 added a fix and tests to ensure incomplete quotes won't break the app. As a workaround, the quote can be fixed via the rails console.",
    "evidence": "osv:CVE-2022-39232",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-39232",
      "aliases": [
        "BIT-discourse-2022-39232",
        "CVE-2022-39232",
        "GHSA-cv64-v73f-7wq5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/discourse/discourse",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f313276966676f555d0c6918e913673730ae78f4"
                },
                {
                  "fixed": "000c7a3ee3351eb3cd3d4b266855c9b13dfbdd00"
                },
                {
                  "fixed": "eab33af5bf19827527fe79134d865b5c727f6530"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.9.0.beta5"
                      },
                      {
                        "fixed": "2.9.0.beta10"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "eab33af5bf19827527fe79134d865b5c727f6530"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.9.0-beta5",
            "2.9.0-beta6",
            "2.9.0-beta7",
            "2.9.0-beta8",
            "2.9.0-beta9",
            "v2.9.0.beta9",
            "v2.9.0.beta8",
            "v2.9.0.beta7",
            "v2.9.0.beta6",
            "v2.9.0.beta5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39232.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:47.105210108Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39232.json",
        "https://github.com/discourse/discourse/security/advisories/GHSA-cv64-v73f-7wq5",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-39232",
        "https://github.com/discourse/discourse/commit/eab33af5bf19827527fe79134d865b5c727f6530",
        "https://github.com/discourse/discourse/pull/18311"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39232.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-39232",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515075,
  "published_at": "2022-09-29T20:15:14+00:00"
}