CVE-2026-80201: Kimai Twig invoice template sandbox escape via unblocked User methods

CVE-2026-80201 · Severity: low · CVSS 3.1 · Published 2026-08-26

Kimai is a time-tracking and invoicing application. Before version 2.53.0, administrators with template creation permissions could embed API token extraction code in invoice templates. When any user generates an invoice using a compromised template, their API tokens are leaked into the rendered invoice output, potentially exposing credentials to unauthorized access.

Technologies: Kimai, kimai/kimai (Packagist). Vendors: Kimai, Packagist.

Quick answers

Is CVE-2026-80201 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-80201 being exploited in the wild.
How severe is CVE-2026-80201?
Low severity, with a CVSS score of 3.1, published 26 August 2026.
Which products and versions are affected?
Kimai before 2.53.0; kimai/kimai (Packagist) ECOSYSTEM:introduced=0,fixed=2.53.0.
Is there a fix for CVE-2026-80201?
Yes. kimai/kimai (Packagist): upgrade to 2.53.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-80201 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-80201?
Check whether you run Kimai or kimai/kimai (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • kimai/kimai (Packagist): upgrade to 2.53.0 or later
    composer require kimai/kimai:^2.53.0

Technical details

The vulnerability exists in the Twig sandbox security policy (StrictPolicy::checkMethodAllowed()) which maintains a blocklist of sensitive User methods to prevent unauthorized access. The blocklist covers password-related methods but fails to include getApiToken() and getPlainApiToken(). An attacker with template creation permissions (ROLE_ADMIN with manage_invoice_template permission) can craft an invoice template that calls these methods, causing bcrypt or sodium-hashed API passwords to be included in rendered invoice output. The attack requires administrator privileges and template upload functionality to be enabled (OnPremise only, not cloud versions). The vulnerability was patched in version 2.53.0 by replacing the hardcoded blocklist with a dynamic exclusion mechanism that blocks methods containing sensitive trigger words.

Affected products

  • Kimai Kimai before 2.53.0

Identifiers

  • CVE-2026-80201
  • GHSA-rh42-6rj2-xwmc

Timeline

  • 2026-04-11: disclosed: GitHub Security Advisory GHSA-rh42-6rj2-xwmc published
  • 2026-08-26: advisory: CVE-2026-80201 published on NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.