Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-41887

MEDIUM 4.9EPSS 32%

Flarum: Path traversal in LESS parser via theme color settings (incomplete fix for CVE-2023-27577)

Also known as GHSA-xjvc-pw2r-6878

Mitigation

  • Upgrade flarum/core to one of 1.8.16, 2.0.0-rc.1 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package flarum/core (< 1.8.16)
  • Anyone running flarum framework < 1.8.16; >= 2.0.0-beta.1, < 2.0.0-rc.1

Vulnerability facts

Affected
flarum/core < 1.8.16
Fixed in
1.8.16, 2.0.0-rc.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
4.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
CWE
CWE-22, CWE-918
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist flarum/core< 1.8.161.8.16, 2.0.0-rc.1osv
flarum framework< 1.8.16; >= 2.0.0-beta.1, < 2.0.0-rc.1—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-2026-41887. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-41887.md
Affected: flarum/core < 1.8.16
Fixed in: 1.8.16, 2.0.0-rc.1

Steps:
1. Search this machine and project for flarum/core (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

FAQ

Is CVE-2026-41887 being exploited?

There is no confirmed exploitation: CVE-2026-41887 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-41887?

Medium: CVSS 4.9 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2026-41887?

flarum/core < 1.8.16.

Is there a fix for CVE-2026-41887?

Yes. Fixed in 1.8.16, 2.0.0-rc.1. Upgrade flarum/core to one of 1.8.16, 2.0.0-rc.1 (or later in the same release line).

How do I check if I'm affected by CVE-2026-41887?

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.

Sponsors