What’s Vulnerable › Vulnerabilities
CVE-2024-21641: Flarum's Logout Route allows open redirects
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-01-05 · updated 2026-06-17
- Weakness: CWE-601
Description
Flarum is open source discussion platform software. Prior to version 1.8.5, the Flarum `/logout` route includes a redirect parameter that allows any third party to redirect users from a (trusted) domain of the Flarum installation to redirect to any link. For logged-in users, the logout must be confirmed. Guests are immediately redirected. This could be used by spammers to redirect to a web address using a trusted domain of a running Flarum installation. The vulnerability has been fixed and published as flarum/core v1.8.5. As a workaround, some extensions modifying the logout route can remedy this issue if their implementation is safe.
Affected products
- Flarum: before 1.8.5 — fixed in 1.8.5
How to fix
Upgrade to a fixed version: Flarum 1.8.5. Check the vendor advisory for mitigations.
References
- https://github.com/flarum/flarum-core/commit/ee8b3b4ad1413a2b0971fdd9e40f812d2a3a9d3a
- https://github.com/flarum/framework/commit/7d70328471cf3091d92d95c382d277aec7996176
- https://github.com/flarum/framework/security/advisories/GHSA-733r-8xcp-w9mr
- https://github.com/flarum/flarum-core/commit/ee8b3b4ad1413a2b0971fdd9e40f812d2a3a9d3a
- https://github.com/flarum/framework/commit/7d70328471cf3091d92d95c382d277aec7996176
- https://github.com/flarum/framework/security/advisories/GHSA-733r-8xcp-w9mr
Get alerted when CVE-2024-21641 or the next vulnerability affects your stack