XSS in Kimai

CVE-2026-40479

Kimai is an open-source time tracking application. In versions 1.16.3 through 2.52.0, the escapeForHtml() function in KimaiEscape.js does not escape double quote or single quote characters. When a user's profile alias is inserted into an HTML attribute context via the team member form prototype and rendered through innerHTML, this incomplete escaping allows HTML attribute injection. An authenticated user with ROLE_USER privileges can store a malicious alias that executes JavaScript in the browser of any administrator viewing the team form, resulting in stored XSS with privilege escalation. This issue has been fixed in version 2.53.0.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.002 (10.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Affected products

  • Kimai — versions >= 1.16.3, < 2.53.0

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-40479?
CVE-2026-40479 is a medium-severity vulnerability in Kimai, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-04-17.
How severe is CVE-2026-40479?
Medium severity. CVSS v3 base score is 5.4 out of 10.