CVE-2022-41938
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account, but needs a user to act. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 0.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.8% in the next 30 days (EPSS).
- Severity: 9.0 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.8% · EPSS, next 30 days
- Weakness
- CWE-79 · Cross-site scripting
- Record status
- Modified
Affected
- Flarum < 1.6.2
Attack profile CVSS 3.1 · 9.0
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-41938.md and follow it. Check whether this project is affected by CVE-2022-41938. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://discuss.flarum.org/d/27558
- https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138
- https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x
- https://discuss.flarum.org/d/27558
- https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138
- https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x
References
- https://discuss.flarum.org/d/27558
- https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138
- https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x
- https://discuss.flarum.org/d/27558
- https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138
- https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x