# CVE-2022-41938: Cross site scripting vulnerability with discussion titles in flarum

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 61% of CVEs (2026-11-30)
- Published: 2022-11-19T00:00:00.000Z
- Modified: 2026-06-17T05:04:05.973Z
- Also known as: GHSA-7x4w-j98p-854x
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- flarum framework: >= 1.5.0, < 1.6.2
- flarum/core (Packagist): from 1.5.0 before 1.6.2
- flarum flarum: from 1.5.0 before 1.6.2

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x> (third-party-advisory, web)
- <https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138> (patch, third-party-advisory, web)
- <https://discuss.flarum.org/d/27558> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41938> (advisory)
- <https://github.com/flarum/framework> (package)

## Sources

- CVE List: [CVE-2022-41938](https://www.cve.org/CVERecord?id=CVE-2022-41938), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-7x4w-j98p-854x](https://github.com/advisories/GHSA-7x4w-j98p-854x), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-41938](https://nvd.nist.gov/vuln/detail/CVE-2022-41938), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-41938 · Whole record: https://cve.day/CVE-2022-41938.json · Rebuilt by cve.day 2026-11-25T22:58:16.692Z
