/

CVE-2026-92772

Severity:

HIGH RISK

(7.1)

Authorization Bypass (CWE-862) in Leantime HTMX Plugin

CVE-2026-92772

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-862

Impact:

Unauthorized Plugin Installation and Potential Code Execution

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Leantime contains an authorization bypass in the HTMX plugin installation endpoint, allowing authenticated users with limited roles to install marketplace plugins without the required permission checks. Because attackers can control plugin properties such as the identifier, version, and license key, successful abuse could enable deployment of malicious or unauthorized plugins.

Affected context

The vulnerability occurs in Leantime deployments that expose the HTMX plugin installation endpoint and permit authenticated users with insufficient privileges to reach it. Risk increases when marketplace plugin metadata is accepted without enforcing role-based authorization or verifying that the requested plugin properties match trusted catalog information.

Exploit preconditions

  • Attack surface: The authenticated HTMX plugin installation endpoint
  • Required access: An authenticated account with a limited role that can reach the endpoint
  • Trigger point: A plugin installation request containing attacker-controlled marketplace properties
  • Why exploitation is possible: The endpoint does not adequately validate whether the requesting user is authorized to install plugins and permits control over plugin identifiers, versions, and license keys

Why this happens

The underlying flaw is an authorization enforcement failure. The plugin installation endpoint performs an operation with elevated administrative impact without consistently checking the caller's role or permissions, which maps to CWE-862: Missing Authorization. Trusting user-controlled plugin properties can further allow a caller to select or deploy content outside the intended marketplace and administrative workflow.

Potential impact

  • Unauthorized users may install marketplace plugins
  • Attackers could deploy malicious or tampered plugin code
  • The application may be exposed to unauthorized code execution, depending on plugin capabilities
  • Sensitive data or application functionality could be modified or accessed
  • Plugin-based persistence or further compromise may be possible

General mitigation guidance

Mitigation generally focuses on enforcing authorization at the server-side operation boundary rather than relying on interface visibility or client-side restrictions.

Common defensive patterns include:

  • Requiring an explicit administrative permission for plugin installation
  • Applying centralized role and capability checks to every plugin-management endpoint
  • Allowing plugin identifiers and versions only from a trusted, server-controlled catalog
  • Validating license and package metadata against approved sources
  • Separating plugin upload, approval, and installation privileges
  • Running plugins with the least privileges and limiting their access to application resources
  • Recording and reviewing plugin installation events

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis rules that identify state-changing endpoints without authorization checks
  • Code review checks for plugin installation handlers that trust request-supplied identifiers, versions, or license data
  • Integration tests covering each role's ability to install, update, or remove plugins
  • Runtime monitoring for plugin-management requests from non-administrative accounts
  • Policy enforcement requiring server-side authorization and trusted package verification before installation
  • Automated security review tools that flag missing access-control checks on sensitive endpoints

Sources

SourceLink
github.comgithub.com/Leantime/leantime
github.comgithub.com/Leantime/leantime/blob/v3.9.5/app/Domain/Plugins/Controllers/Marketplace.php#L24
github.comgithub.com/Leantime/leantime/blob/v3.9.5/app/Domain/Plugins/Hxcontrollers/Details.php#L25-L40
github.comgithub.com/Leantime/leantime/blob/v3.9.5/app/Domain/Plugins/Services/Plugins.php#L546-L561
github.comgithub.com/Leantime/leantime/blob/v3.9.6/app/Domain/Plugins/Hxcontrollers/Details.php#L27
github.comgithub.com/Leantime/leantime/issues/3757
vulncheck.comvulncheck.com/advisories/leantime-before-3.9.6-unauthorized-plugin-installation-via-htmx

Frequently asked

questions

It may be exploitable through the application's authenticated web interface when the vulnerable endpoint is reachable over the network. Exploitation still requires valid credentials for an account whose role would normally lack plugin-management privileges.

No. The issue specifically concerns insufficient authorization for authenticated users with limited roles, although the exact affected roles depend on deployment configuration.

Enforce server-side permission checks on the plugin installation operation and restrict plugin metadata and packages to trusted, approved sources.

Apply centralized authorization middleware, test sensitive actions across all roles, validate server-controlled plugin properties, and monitor administrative operations such as plugin installation.

Find out what's already
exploitable in your codebase.