# CVE-2026-40479

> Vulnerability · severity: **MEDIUM** (CVSS 5.4).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40479
- **Published:** 2026-04-17
- **CVSS severity:** MEDIUM
- **CVSS base score:** 5.4
- **CWE codes:** CWE-79

## Affected products

- `kimai:kimai`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40479

## Citation

> AI Analytics. CVE-2026-40479. Retrieved 2026-07-23 from https://api.ai-analytics.org/cve/CVE-2026-40479. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*