CVE-2023-22487: 
PHP vulnerability analysis and mitigation

Overview

CVE-2023-22487 affects Flarum, a forum software for building communities, specifically its mentions feature provided by the flarum/mentions extension. The vulnerability was discovered and disclosed in January 2023, affecting all Flarum versions prior to 1.6.3. The vulnerability allows users to mention any post ID on the forum using the special @""#p syntax, potentially exposing private content (GitHub Advisory).

Technical details

The vulnerability stems from two key issues in the mentions feature: 1) A URL to the mentioned post is inserted into the actor post HTML, leaking its discussion ID and post number, and 2) The mentionsPosts relationship included in the POST /api/posts and PATCH /api/posts/ JSON responses leaks the full JSON:API payload of all mentioned posts without any access control. The vulnerability has been assigned a CVSS v3.1 base score of 7.7 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N, indicating network attack vector, low attack complexity, and high impact on confidentiality (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to leak all posts in the forum database, including posts awaiting approval, posts in tags the user has no access to, and private discussions. This includes non-comment posts like tag changes or renaming events. While discussion payloads are not directly leaked, attackers can extract discussion IDs from mention HTML payloads to reconstruct original discussions (GitHub Advisory).

Exploitability

An attacker only needs the ability to create new posts on the forum to exploit the vulnerability, even if new posts require approval. The attack can be performed more discreetly if the attacker has post editing capabilities, allowing them to scan any size of database using a single post and subsequently hide the attack post content (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in flarum/core v1.6.3. Communities running Flarum should upgrade immediately using the command 'composer update --prefer-dist --no-dev -a -W'. As a temporary workaround, administrators can disable the mentions extension entirely. Users can verify their version using the command 'composer show flarum/core' (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-107376HIGH8.2
  • PHP logoPHP
  • webonyx/graphql-php
NoYesOct 08, 2026
CVE-2026-104890HIGH7.2
  • PHP logoPHP
  • kunstmaan/bundles-cms
NoYesOct 05, 2026
CVE-2026-107381MEDIUM6.5
  • PHP logoPHP
  • enshrined/svg-sanitize
NoYesOct 08, 2026
CVE-2026-107379MEDIUM6.5
  • PHP logoPHP
  • enshrined/svg-sanitize
NoYesOct 08, 2026
CVE-2026-107380MEDIUM5.4
  • PHP logoPHP
  • enshrined/svg-sanitize
NoYesOct 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management