{"id":"CVE-2026-41887","published":"2026-05-08T15:50:38Z","modified":"2026-05-08T19:26:53Z","title":"Flarum: Path traversal in LESS parser via theme color settings (incomplete fix for CVE-2023-27577)","vendor":"flarum","product":"framework","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00472,"percentile":0.41685,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/flarum/framework/security/advisories/GHSA-xjvc-pw2r-6878","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410","tags":["x_refsource_MISC"]},{"url":"https://github.com/flarum/framework/releases/tag/v1.8.16","tags":["x_refsource_MISC"]},{"url":"https://github.com/flarum/framework/releases/tag/v2.0.0-rc.1","tags":["x_refsource_MISC"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":8.34},{"name":"CVSS severity","points":3.43}]},"vendorSlug":"flarum","affectedVersions":[{"vendor":"flarum","product":"framework","versions":["< 1.8.16",">= 2.0.0-beta.1, < 2.0.0-rc.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-08T19:26:06.629218Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"flarum/core","vulnerableRanges":["<1.8.16",">=2.0.0-beta.1, <2.0.0-rc.1"],"patched":["1.8.16","2.0.0-rc.1"],"from":["GHSA-xjvc-pw2r-6878"],"provenance":"source"}],"summary":{"text":"Flarum's LESS compiler, in its theme color settings and any other setting registered as a LESS config variable, fails to apply the import and data-uri restrictions that were added for the custom_less setting, so values are interpolated unsanitised into the compiled forum stylesheet. An attacker who holds administrator privileges on the forum can enter a crafted theme color value that injects an @import directive, enabling reading of files the PHP process can access or triggering outbound HTTP(S) requests from the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:44Z"},"euvd":{"id":"EUVD-2026-28804","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-flarum-framework-cve-2023-27577","parents":[{"from":"CVE-2023-27577","to":"CVE-2026-41887","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xjvc-pw2r-6878","via":"reference","url":"https://github.com/flarum/framework/security/advisories/GHSA-vhm8-wwrf-3gcw"},{"kind":"same-code","provenance":"machine","files":["framework/core/src/Forum/ValidateCustomLess.php"],"commits":["https://github.com/flarum/framework/commit/1761660c98ea5a3e9665fb8e6041d1f2ee62a444","https://github.com/flarum/framework/commit/2d90a1f19f0e46f8c7e1b07c48ba74b5e38f8410"],"basis":"shared function","functions":["whenSettingsSaving"]}]}],"packageHistory":[{"cve":"CVE-2023-40033","published":"2023-08-16","fixed":"1.8.0","kev":false},{"cve":"CVE-2024-21641","published":"2024-01-05","fixed":"1.8.5","kev":false},{"cve":"CVE-2025-27794","published":"2025-03-12","fixed":"1.8.10","kev":false,"link":{"from":"CVE-2025-27794","to":"CVE-2026-41887","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:flarum/core","fromFixed":"1.8.10","toFixed":"1.8.16","daysApart":422}]}},{"cve":"CVE-2026-41887","published":"2026-05-08","fixed":"2.0.0-rc.1","kev":false}],"package":"Packagist:flarum/core"}}