Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-41887: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in flarum framework

0
Medium
VulnerabilityCVE-2026-41887cvecve-2026-41887cwe-22cwe-918
Published: Fri May 08 2026 (05/08/2026, 15:50:38 UTC)
Source: CVE Database V5
Vendor/Project: flarum
Product: framework

Description

CVE-2026-41887 is a path traversal vulnerability in the Flarum forum framework affecting versions prior to 1. 8. 16 and certain pre-release 2. 0. 0 versions. The issue arises because some LESS configuration variables are not properly restricted, allowing an authenticated administrator to inject arbitrary @import directives into the compiled CSS. This can lead to local file inclusion or server-side request forgery by reading files accessible to the PHP process or triggering outbound HTTP(S) requests. The vulnerability has a medium severity with a CVSS score of 4. 9. It has been patched in versions 1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/08/2026, 16:36:37 UTC

Technical Analysis

Flarum's patch for a previous vulnerability (CVE-2023-27577) restricted the use of @import and data-uri() 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. These variables are interpolated directly into the LESS source at compile time, allowing an authenticated administrator to inject arbitrary @import directives. Because the LESS parser processes these imports, an attacker can perform local file inclusion or server-side request forgery. The vulnerability affects Flarum framework versions before 1.8.16 and certain 2.0.0 pre-release versions and was fixed in 1.8.16 and 2.0.0-rc.1.

Potential Impact

An authenticated administrator can exploit this vulnerability to read arbitrary files accessible to the PHP process or cause the server to make outbound HTTP(S) requests. This can lead to disclosure of sensitive information from the server's file system or interaction with external systems via server-side request forgery. The vulnerability does not impact integrity or availability directly but has a high confidentiality impact.

Mitigation Recommendations

This vulnerability has been patched in Flarum versions 1.8.16 and 2.0.0-rc.1. Users should upgrade to these or later versions to remediate the issue. No vendor advisory was provided to indicate alternative mitigations or temporary fixes. Patch status is confirmed by the version information in the description.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-22T15:11:54.671Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69fe0d85cbff5d8610fb9954

Added to database: 5/8/2026, 4:21:25 PM

Last enriched: 5/8/2026, 4:36:37 PM

Last updated: 5/8/2026, 5:27:15 PM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses