# Leantime: Any Authenticated User Can Self-Escalate to Admin via Unauthorized JSON-RPC Methods

High severity, published 2026-10-15. Update leantime/leantime to 3.10.0 or later: composer update leantime/leantime.

Canonical URL: https://buzzphp.com/security/ghsa-54mm-6729-r5wp · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-10-15 |
| Updated | 2026-10-15 |
| CVE | [CVE-2026-85990](https://nvd.nist.gov/vuln/detail/CVE-2026-85990) |
| GHSA | [GHSA-54mm-6729-r5wp](https://github.com/advisories/GHSA-54mm-6729-r5wp) |
| Weakness | CWE-269, CWE-862 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| leantime/leantime | < 3.10.0 | 3.10.0 |

## What to do

Update leantime/leantime to 3.10.0 or later: composer update leantime/leantime.

Check which version you run with `composer show leantime/leantime`, and every affected package with `composer audit`.

## About this advisory

Summary

Any authenticated Leantime user - including the lowest-privilege readonly role - can escalate to full administrative access by calling the JSON-RPC method leantime.rpc.api.api.createApiKeyWithProjects with an attacker-chosen role value. The server creates a new account at that role with no authorization check, and the resulting credentials work as a fully interactive admin login through the ordinary web UI.

## Links

- [GHSA-54mm-6729-r5wp on GitHub](https://github.com/advisories/GHSA-54mm-6729-r5wp)
- [CVE-2026-85990 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-85990)
- [All Composer security advisories](https://buzzphp.com/security)
