Skip to content
Heist/ feed
Back to feed
Critical

Cross site scripting vulnerability with discussion titles in flarum

Type: advisorySources: OSV

Flarum is an open source discussion platform. Flarum's page title system allowed for page titles to be converted into HTML DOM nodes when pages were rendered. The change was made after `v1.5` and was not noticed. This allowed an attacker to inject malicious HTML markup using a discussion title input, either by creating a new discussion or renaming one. The XSS attack occurs after a visitor opens the relevant discussion page. All communities running Flarum from `v1.5.0` to `v1.6.1` are impacted. The vulnerability has been fixed and published as flarum/core `v1.6.2`. All communities running Flarum from `v1.5.0` to `v1.6.1` have to upgrade as soon as possible to v1.6.2. There are no known workarounds for this issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-41938
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:06 UTC · Revision 1

Source evidence

Cross site scripting vulnerability with discussion titles in flarum

core-osv · Original source

Published 19 Nov 2022, 00:00 UTC

Flarum is an open source discussion platform. Flarum's page title system allowed for page titles to be converted into HTML DOM nodes when pages were rendered. The change was made after `v1.5` and was not noticed. This allowed an attacker to inject malicious HTML markup using a discussion title input, either by creating a new discussion or renaming one. The XSS attack occurs after a visitor opens the relevant discussion page. All communities running Flarum from `v1.5.0` to `v1.6.1` are impacted. The vulnerability has been fixed and published as flarum/core `v1.6.2`. All communities running Flarum from `v1.5.0` to `v1.6.1` have to upgrade as soon as possible to v1.6.2. There are no known workarounds for this issue.

osv:CVE-2022-41938
Complete source record
{
  "id": "fa1ad2d07d235b8e4aa80cae97c87da4f33da7c5b203f83000226fdea1885491",
  "url": "https://osv.dev/vulnerability/CVE-2022-41938",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Cross site scripting vulnerability with discussion titles in flarum",
    "summary": "Flarum is an open source discussion platform. Flarum's page title system allowed for page titles to be converted into HTML DOM nodes when pages were rendered. The change was made after `v1.5` and was not noticed. This allowed an attacker to inject malicious HTML markup using a discussion title input, either by creating a new discussion or renaming one. The XSS attack occurs after a visitor opens the relevant discussion page. All communities running Flarum from `v1.5.0` to `v1.6.1` are impacted. The vulnerability has been fixed and published as flarum/core `v1.6.2`. All communities running Flarum from `v1.5.0` to `v1.6.1` have to upgrade as soon as possible to v1.6.2. There are no known workarounds for this issue.",
    "evidence": "osv:CVE-2022-41938",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-41938",
      "aliases": [
        "CVE-2022-41938",
        "GHSA-7x4w-j98p-854x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/flarum/framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a35df8c1396df807377152d515c59ff12d069cff"
                },
                {
                  "fixed": "8a65ad980d2dd588c4528310a2ef1d9192abac96"
                },
                {
                  "fixed": "690de9ce0ffe7ac4d45b73e303f44340c3433138"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:flarum:flarum:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.5.0"
                      },
                      {
                        "fixed": "1.6.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "690de9ce0ffe7ac4d45b73e303f44340c3433138"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.6.1",
            "v1.6.0",
            "v1.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41938.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.063490133Z",
      "provider": "osv",
      "references": [
        "https://discuss.flarum.org/d/27558",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41938.json",
        "https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-41938",
        "https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41938.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-41938",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499904,
  "published_at": "2022-11-19T00:00:00+00:00"
}