Kimai: Stored XSS via Incomplete HTML Attribute Escaping in Team Member Widget
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kimai | kimai | 1.16.3 to before 2.53.0 | 2.53.0 | Patch available | CNA |
| — | kimai/kimai (Packagist) | before 2.53.0 | 2.53.0 | Patch available | GHSA-g82g-m9vx-vhjg |
- kimai Vendorkimai Affected 1.16.3 to before 2.53.0 Fixed in 2.53.0 Patch available CNA
- kimai/kimai (Packagist) Vendor— Affected before 2.53.0 Fixed in 2.53.0 Patch available GHSA-g82g-m9vx-vhjg
Remediation
- Fix · CNA kimai (kimai) Fixed in 2.53.0
- Fix · GHSA-g82g-m9vx-vhjg kimai/kimai (Packagist) Fixed in 2.53.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40479
- 2026-10-03 Alias added: GHSA-g82g-m9vx-vhjg
References
More Kimai vulnerabilities
- TI-2023-30240 Kimai 1.30.10 SameSite Cookie Vulnerability Session Hijacking CVSS 4.0HIGH 8.5
- TI-2026-22900 Kimai: API invoice endpoint missing customer-level access control (IDOR) CVSS 3.1MEDIUM 6.5
- TI-2026-30580 Kimai: Formula Injection via tag names in XLSX export CVSS 4.0MEDIUM 5.4
- TI-2019-15371 Kimai 2- persistent cross-site scripting (XSS) CVSS 4.0MEDIUM 5.1
- TI-2026-29237 Kimai's User Preferences API allows standard users to modify restricted attributes: hourly_rate, internal_rate CVSS 3.1MEDIUM 4.3
- TI-2026-30084 Kimai: Team API Missing Object-Level Authorization CVSS 3.1LOW 3.3
Sources
- CVE-2026-40479 · CVE Program
- CVE-2026-40479 · NVD
- FIRST EPSS
- GHSA-g82g-m9vx-vhjg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences