Description
Kimai before 2.53.0 fails to block sensitive User methods in the Twig invoice template sandbox, allowing admins to call getApiToken() and getPlainApiToken() methods. Attackers with template creation permissions can embed these method calls in invoice templates to leak hashed API tokens in rendered invoice output.
Published: 2026-08-25
Score: 2 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Kimai versions before 2.53.0 are vulnerable because the Twig invoice template sandbox does not block sensitive User methods. Admin users who can create or modify invoice templates can add method calls that expose API tokens through the rendered invoice. This allows an attacker to obtain hashed API tokens, which can be used to authenticate or impersonate the victim's account. The underlying weakness is a failure to enforce sandbox restrictions and is associated with CWE‑94.

Affected Systems

The affected systems are Kimai installations running any version older than 2.53.0. The vulnerability applies to all users who have permission to create or edit invoice templates within the application. Version information from the CNA lists all releases prior to 2.53.0 as susceptible.

Risk and Exploitability

The CVSS score of 2 indicates low overall severity; however, the impact is the disclosure of API credentials. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is an internal attacker or a compromised administrative account that can add custom templates. The exploit does not require any code execution beyond inserting method calls in the template, making it simple to carry out for anyone with template creation privileges.

Generated by OpenCVE AI on August 26, 2026 at 01:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official Kimai 2.53.0 release or later to fix the sandbox enforcement issue.
  • If an upgrade is not immediately possible, remove or severely restrict invoice template creation permissions so that only highly trusted users can add custom templates.
  • Configure the Twig sandbox to explicitly block the User::getApiToken and User::getPlainApiToken methods, ensuring no sensitive methods can be invoked from templates.

Generated by OpenCVE AI on August 26, 2026 at 01:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Description Kimai before 2.53.0 fails to block sensitive User methods in the Twig invoice template sandbox, allowing admins to call getApiToken() and getPlainApiToken() methods. Attackers with template creation permissions can embed these method calls in invoice templates to leak hashed API tokens in rendered invoice output.
Title Kimai before 2.53.0 API Token Leakage via Invoice Template
First Time appeared Kimai
Kimai kimai
Weaknesses CWE-94
CPEs cpe:2.3:a:kimai:kimai:*:*:*:*:*:*:*:*
Vendors & Products Kimai
Kimai kimai
References
Metrics cvssV3_1

{'score': 2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T23:19:06.486Z

Reserved: 2026-08-25T23:14:37.730Z

Link: CVE-2026-80201

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T01:30:16Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')