CVE-2026-41887 Details
Description
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.
A path traversal vulnerability has been identified in Flarum, an open-source forum software, prior to versions 1.8.16 and 2.0.0-rc.1. The issue arises from an incomplete patch for CVE-2023-27577, which restricted certain LESS features in the 'custom_less' setting but failed to apply the same limitations to other LESS config variables, such as 'theme_primary_color' and 'theme_secondary_color'. This oversight allows authenticated administrators to inject arbitrary @import directives into the compiled forum.css, potentially leading to local file inclusion or server-side request forgery.
Users can upgrade to Flarum versions 1.8.16 or 2.0.0-rc.1, both of which include the necessary fix. The update can be downloaded from the Flarum GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 8, 2026CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/flarum/framework/security/advisories/GHSA-xjvc-pw2r-6878 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410 | [email protected] | Source CodeVendor |
| https://github.com/flarum/framework/releases/tag/v1.8.16 | [email protected] | Release NotesVendor |
| https://github.com/flarum/framework/releases/tag/v2.0.0-rc.1 | [email protected] | Release NotesVendor |
| https://github.com/flarum/framework/security/advisories/GHSA-xjvc-pw2r-6878 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Flarum | <= 1.8.15 (semver) >= 2.0.0-beta.1, <= 2.0.0-beta.8 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | New CVE Received | [email protected] |
Volerion