CVE-2023-22487
Post mentions can be used to read any post on the forum without access control
Also known as GHSA-22m9-m3ww-53h3
Mitigation
- Upgrade flarum/mentions to 1.6.3 or later.
Who should check
- Projects that depend on Packagist package flarum/mentions (< 1.6.3)
- Anyone running flarum framework < 1.6.3
Vulnerability facts
- Affected
- flarum/mentions < 1.6.3
- Fixed in
- 1.6.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.64% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- CWE
- CWE-284
- Modified
Description
Flarum is a forum software for building communities. Using the mentions feature provided by the flarum/mentions extension, users can mention any post ID on the forum with the special `@"<username>"#p<id>` syntax. The following behavior never changes no matter if the actor should be able to read the mentioned post or not: A URL to the mentioned post is inserted into the actor post HTML, leaking its discussion ID and post number. The `mentionsPosts` relationship included in the `POST /api/posts` and `PATCH /api/posts/<id>` JSON responses leaks the full JSON:API payload of all mentioned posts without any access control. This includes the content, date, number and attributes added by other extensions. An attacker only needs the ability to create new posts on the forum to exploit the vulnerability. This works even if new posts require approval. If they have the ability to edit posts, the attack can be performed even more discreetly by using a single post to scan any size of database and hiding the attack post content afterward. The attack allows the leaking of all posts in the forum database, including posts awaiting approval, posts in tags the user has no access to, and private discussions created by other extensions like FriendsOfFlarum Byobu. This also includes non-comment posts like tag changes or renaming events. The discussion payload is not leaked but using the mention HTML payload it's possible to extract the discussion ID of all posts and combine all posts back together into their original discussions even if the discussion title remains unknown. All Flarum versions prior to 1.6.3 are affected. The vulnerability has been fixed and published as flarum/core v1.6.3. As a workaround, user can disable the mentions extension.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist flarum/mentions | < 1.6.3 | 1.6.3 | osv |
| flarum framework | < 1.6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-22487. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-22487.md Affected: flarum/mentions < 1.6.3 Fixed in: 1.6.3 Steps: 1. Search this machine and project for flarum/mentions (Packagist), flarum framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-22487 being exploited?
There is no confirmed exploitation: CVE-2023-22487 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-22487?
High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2023-22487?
flarum/mentions < 1.6.3.
Is there a fix for CVE-2023-22487?
Yes. Fixed in 1.6.3. Upgrade flarum/mentions to 1.6.3 or later.
How do I check if I'm affected by CVE-2023-22487?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.