Skip to main content
Vulnerability Database/CVE-2026-112291

CVE-2026-112291: Flarum Extension Manager Disclosure Flaw

CVE-2026-112291 is an information disclosure vulnerability in Flarum Extension Manager that exposes sensitive system information to unauthenticated attackers. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112291 Overview

CVE-2026-112291 is a missing authorization vulnerability [CWE-862] in the Flarum Extension Manager (package-manager) extension. Versions 2.0.0-beta.1 through 2.0.0-beta.7 fail to apply authentication and admin role checks on the TaskResource index endpoint. Unauthenticated remote attackers can issue GET requests to /api/extension-manager-tasks and read task output. The exposed data includes absolute filesystem paths, installed extensions and their versions, and the PHP runtime version. This information supports reconnaissance for follow-on attacks against the Flarum forum software.

Critical Impact

Unauthenticated attackers can enumerate installed extensions, extension versions, PHP version, and filesystem paths from any affected Flarum instance over the network.

Affected Products

  • Flarum framework package-manager extension version 2.0.0-beta.1
  • Flarum framework package-manager extension versions through 2.0.0-beta.7
  • Fixed in Flarum framework release v2.0.0-beta.8

Discovery Timeline

  • 2026-10-19 - CVE-2026-112291 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112291

Vulnerability Analysis

The Flarum package-manager extension exposes a JSON:API resource called TaskResource that lists background tasks created when administrators install, update, or remove extensions. Each task record contains operational output such as composer command logs, filesystem paths, and version strings. In vulnerable builds the Index endpoint declared no authorization constraints, so the Flarum API layer served it to anonymous clients. The resulting disclosure maps the forum's technology stack, revealing extension names and versions that an attacker can cross-reference with public vulnerability data. The exposure is network-reachable, requires no interaction, and leaves no authentication artifacts in the logs.

Root Cause

The TaskResource class in extensions/package-manager/src/Api/Resource/TaskResource.php declared an Endpoint\Index without chaining the authenticated() or admin() policy modifiers that other administrative resources use. Flarum's endpoint builder treats missing policy calls as public access, so the handler returned paginated task records to any caller.

Attack Vector

Exploitation requires only an HTTP client. An attacker sends an unauthenticated GET /api/extension-manager-tasks request to a target forum and parses the JSON:API response. The returned output attribute of each task exposes composer logs that include server paths such as /var/www/html/flarum, installed package names, semantic version numbers, and the PHP interpreter version reported by composer during dependency resolution.

php
     {
         return [
             Endpoint\Index::make()
+                ->authenticated()
+                ->admin()
                 ->defaultSort('-createdAt')
                 ->paginate(),
         ];

Source: GitHub commit 257989e71f. The patch adds ->authenticated() and ->admin() to the Index endpoint builder, forcing the request pipeline to reject anonymous and non-admin callers before any task data is serialized.

Detection Methods for CVE-2026-112291

Indicators of Compromise

  • Web server access log entries containing GET /api/extension-manager-tasks from clients without an authenticated session cookie or admin API token.
  • Repeated requests to /api/extension-manager-tasks from a single source IP, especially paired with pagination query parameters.
  • Outbound reconnaissance patterns where the same IP later probes URLs that match installed extensions disclosed by the endpoint.

Detection Strategies

  • Alert on any HTTP 200 response from /api/extension-manager-tasks where the request lacks a valid Flarum admin session.
  • Baseline legitimate access: administrative task polling originates from authenticated admin browser sessions, not from unauthenticated clients or scanners.
  • Correlate requests to the task endpoint with subsequent exploitation attempts against the specific extensions and versions disclosed in the response body.

Monitoring Recommendations

  • Ingest Flarum web server access logs into a centralized log platform and build a search for the vulnerable URI pattern.
  • Monitor response sizes on /api/extension-manager-tasks — non-empty JSON bodies to unauthenticated clients indicate successful exploitation on unpatched builds.
  • Review historical logs since the deployment date of any 2.0.0-beta.1 through 2.0.0-beta.7 build to identify prior reconnaissance.

How to Mitigate CVE-2026-112291

Immediate Actions Required

  • Upgrade the Flarum package-manager extension to release v2.0.0-beta.8 or later, which enforces authenticated() and admin() on the task index endpoint.
  • Audit web server access logs for prior unauthenticated requests to /api/extension-manager-tasks and treat matches as reconnaissance events.
  • Rotate any secrets or paths that may have been inferred from disclosed task output if logs confirm successful queries.

Patch Information

The fix is included in Flarum framework release v2.0.0-beta.8 and tracked in GitHub Issue #4386. The code change in commit 257989e71f adds authentication and admin policy enforcement to the TaskResource index endpoint. Additional context is available in the VulnCheck advisory for Flarum.

Workarounds

  • Block unauthenticated requests to /api/extension-manager-tasks at a reverse proxy or Web Application Firewall until the extension is upgraded.
  • Temporarily disable the flarum/package-manager extension if upgrading is not immediately possible.
  • Restrict administrative API routes to known administrator source IP ranges using network-level ACLs.
bash
# Example nginx rule to block anonymous access to the task endpoint
location = /api/extension-manager-tasks {
    # Allow only trusted admin network ranges
    allow 203.0.113.0/24;
    deny all;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.