CVE-2022-41938Flarum
Medium 5.4
Follow: this CVE · Flarum · Flarum We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- Yes
- Published
- Nov 19, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Flarum.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | flarum/core |
≥ 1.5.0 < 1.6.2 |
1.6.2 |
composer require "flarum/core:^1.6.2" |
Per OSV / GitHub Advisories (GHSA-7x4w-j98p-854x). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| flarum | flarum | ≥ 1.5.0 < 1.6.2 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.flarum.org Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory