CVE-2026-40479 Details
Description
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.
A stored cross-site scripting vulnerability has been identified in Kimai, an open-source time tracking application, affecting versions 1.16.3 prior to 2.52.0. The issue arises from the escapeForHtml() function in KimaiEscape.js, which fails to properly escape double and single quote characters. This flaw allows HTML attribute injection when a user's profile alias is inserted into an HTML attribute context via the team member form prototype and rendered through innerHTML. An authenticated user with ROLE_USER privileges can exploit this by injecting a malicious alias that executes JavaScript in the browser of any administrator viewing the team form, leading to privilege escalation.
Users can update to Kimai version 2.53.0, which addresses this vulnerability by properly escaping quote characters in user attributes.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kimai/kimai/releases/tag/2.53.0 | [email protected] | ProductRelease Notes |
| https://github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjg | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| kimai kimai | < 2.53.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |