Skip to main content

Flarum CVE-2026-41887

| EUVDEUVD-2026-28804 MEDIUM
Path Traversal (CWE-22)
2026-05-08 GitHub_M
4.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker obtains admin credentials
  2. Delivery
    Authenticates to Flarum admin API
  3. Exploit
    Crafts malicious theme color setting with @import directive
  4. Install
    Submits POST /api/settings with injected payload
  5. C2
    Setting stored in database
  6. Execute
    LESS compiler interpolates setting into source
  7. Impact
    LESS parser executes @import (inline) directive
  8. Step 8
    File contents or SSRF response embedded in forum.css
  9. Step 9
    Attacker retrieves public forum.css and extracts sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be an authenticated administrator with permission to modify theme settings via the POST /api/settings API endpoint. No special forum configuration is required; theme color settings and custom LESS config variables are enabled by default in Flarum installations. The vulnerability affects any setting registered as a LESS config variable through Extend\Settings::registerLessConfigVar(), including the built-in theme_primary_color and theme_secondary_color. The attack does not require user interaction and the injected @import directive is processed automatically during CSS compilation on the next settings save or forum rebuild. The LESS parser must honor @import (inline) syntax for exploitation to succeed, which is standard LESS behavior. Authentication requirement: administrator-level privilege (PR:H per CVSS vector). Exploitation is limited to administrators and does not affect unauthenticated users or lower-privilege forum members.

Impact

CVSS 4.9 with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N indicates network-accessible exploitation requiring high-privilege authentication (admin) with high confidentiality impact but no integrity or availability impact. The seemingly low CVSS score of 4.9 understates real-world risk because it reflects the requirement for admin credentials, yet this is a privilege-escalation vulnerability: an administrator is not intended to have host-level file read access or internal network reach. The exploitation conditions are concrete and verifiable: only authenticated administrators can submit the malicious settings via POST /api/settings, and the attack is deterministic (AC:L). The lack of user interaction (UI:N) and narrow scope (S:U) are accurate. However, the impact is severe in practice because successful exploitation exposes .env files with database credentials, OAuth secrets, API keys, and enables SSRF to AWS IMDSv1 and internal services. No KEV or public POC is referenced in the input data, but the vulnerability is well-documented with a working example payload (theme_primary_color: '#4D698E;@import (inline) /etc/passwd;'), demonstrating immediate and straightforward exploitation. Risk priority depends on forum administrator account security posture; if admin accounts are compromised or if untrusted users hold admin roles, exploitation is highly likely.

Exploit ScenarioDerived

A threat actor with valid administrator credentials (either compromised account or malicious insider) submits a POST request to /api/settings with a crafted theme_primary_color value containing @import (inline) '/etc/passwd'; or similar file path. Flarum stores the malicious setting, interpolates it into LESS source on the next CSS compile, and the LESS parser executes the @import directive. The target file's contents are embedded into the compiled forum.css, which is publicly served to all users. The attacker retrieves forum.css and extracts sensitive data (credentials, API keys, environment variables) or uses @import to trigger SSRF requests to internal services and cloud metadata endpoints.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Authenticated administrators in Flarum can read arbitrary files and trigger server-side request forgery via LESS injection in theme color settings. The vulnerability exploits an incomplete patch for CVE-2023-27577 that restricted @import and data-uri() only in the custom_less setting but failed to apply the same restrictions to other LESS config variables such as theme_primary_color and theme_secondary_color. An attacker with admin credentials can inject arbitrary @import directives into compiled forum.css, exposing sensitive files or making outbound HTTP requests to internal networks and cloud metadata endpoints. Vendor-released patches: Flarum 1.8.16 and 2.0.0-rc.1.

RemediationAI

Vendor-released patch: Flarum 1.8.16 for the 1.x branch and 2.0.0-rc.1 for the 2.x branch. Upgrade via composer update flarum/core to the patched versions immediately. The fix extends the existing @import and data-uri() validation to all settings registered as LESS config variables, not just custom_less. If immediate upgrade is not possible, the primary workaround is to restrict admin account privileges and enforce strong, unique passwords to prevent account compromise; however, this does not prevent exploitation by legitimately trusted administrators. Alternative mitigations include disabling theme customization features temporarily (if the forum software permits) or restricting the PHP process to a read-only filesystem root to limit local file inclusion impact, though this requires careful testing and may affect forum functionality. See https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410 for technical patch details.

Affected VersionsENISA

framework 2.0.0-beta.1, < 2.0.0-rc.1
framework < 1.8.16

Affected Packages

composer flarum/core fix: 1.8.16, 2.0.0-rc.1
euvd framework fix: 1.8.16
euvd framework_2_0_0_beta_1 fix: 2.0.0-rc.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flarum uses LESS (Leaner Style Sheets), a CSS preprocessor that supports @import directives and data-uri() functions. The vulnerability stems from the fact that theme color settings and any custom LESS config variables registered via Extend\Settings::registerLessConfigVar() are interpolated verbatim into LESS source code at compile time without sanitization. The underlying LESS parser honors @import (inline) '<path>' syntax, which allows file inclusion and HTTP requests. The previous patch for CVE-2023-27577 only validated the custom_less setting itself but neglected to apply the same validation to other settings that feed into LESS compilation. This is a path traversal and SSRF vulnerability (CWE-22) enabled by insufficient input validation on LESS preprocessor features.

Know when Flarum gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 08, 2026 - 18:03 EUVD
CVE Published
May 08, 2026 - 15:50 nvd
MEDIUM 4.9

DescriptionCVE.org

Flarum is open-source forum software. Prior to versions 1.8.16 and 2.0.0-rc.1, Flarum's patch for CVE-2023-27577 restricted the @import and data-uri() LESS features in the custom_less setting, but the same restriction was never applied to other settings registered as LESS config variables (for example theme_primary_color and theme_secondary_color, as well as any key registered via Extend\Settings::registerLessConfigVar()). Those values are interpolated verbatim into the LESS source at compile time, allowing an authenticated administrator to craft a theme-color value that injects an arbitrary @import directive into the compiled forum.css. Because the underlying LESS parser honours @import (inline) '<path>', an attacker can read arbitrary files reachable by the PHP process (local file inclusion) or trigger outbound HTTP(S) requests (server-side request forgery). This issue has been patched in versions 1.8.16 and 2.0.0-rc.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Flarum

View all
CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2026-92161 CRITICAL POC
9.8 Sep 25

Unauthenticated account takeover in the FriendsOfFlarum OAuth extension (fof/oauth) for Flarum, affecting versions prior

CVE-2021-32671 CRITICAL
10.0 Jun 07

Flarum is a forum software for building communities. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2026-39923 CRITICAL
9.2 Aug 05

Account takeover in Flarum forum software before 1.8.16 lets remote unauthenticated attackers reuse expired password res

CVE-2019-13183 HIGH
8.8 Jul 07

Flarum before 0.1.0-beta.9 allows CSRF against all POST endpoints, as demonstrated by changing admin settings. Rated hig

CVE-2023-22487 MEDIUM POC
4.3 Jan 11

Flarum is a forum software for building communities. Rated medium severity (CVSS 4.3), this vulnerability is remotely ex

CVE-2026-39924 HIGH
7.6 Aug 05

Session persistence after password change in Flarum before 1.8.16 allows an attacker who already holds a valid session t

CVE-2019-11514 HIGH
7.5 Apr 25

User/Command/ConfirmEmailHandler.php in Flarum before 0.1.0-beta.8 mishandles invalidation of user email tokens. Rated h

CVE-2023-40033 HIGH
7.1 Aug 16

Flarum is an open source forum software. Rated high severity (CVSS 7.1), this vulnerability is remotely exploitable, low

CVE-2026-112291 MEDIUM
6.9 Oct 19

Unauthenticated information disclosure in Flarum Extension Manager 2.0.0-beta.1 through 2.0.0-beta.7 allows remote attac

CVE-2025-27794 MEDIUM
6.8 Mar 12

Flarum is open-source forum software. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable, no a

CVE-2023-22488 MEDIUM
5.4 Jan 12

Flarum is a forum software for building communities. Rated medium severity (CVSS 5.4), this vulnerability is remotely ex

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy