BuzzPHP
LightDarkSystem

Kimai: Pre-2FA KIMAI_SESSION cookie grants full authenticated REST API access, bypassing TOTP

High severity. Published 14 July 2026. Update kimai/kimai to 2.59.0 or later: composer update kimai/kimai.

Which versions are affected?

PackageAffected versionsFixed in
kimai/kimai (opens in a new tab)< 2.59.02.59.0

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show kimai/kimai
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-52827 (opens in a new tab)
GHSAGHSA-v8hx-4vx8-wc96 (opens in a new tab)
WeaknessCWE-287

What the advisory says

Summary Two-factor authentication (TOTP) can be fully bypassed for the REST API. The KIMAISESSION cookie returned in the response to the login request; issued after only the password is verified, before the TOTP step; is already accepted as authenticated by every /api/ endpoint.

So after submitting just the password, the web UI correctly holds the browser at the TOTP screen (/en/auth/2fa), but the cookie from that same login response can be replayed against the API to act as the user without ever entering the second factor. This affects any account with 2FA enabled and requires only the account password.

Details

Affected Component - The API firewall / authorization.

Source: GHSA-v8hx-4vx8-wc96 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories