CVE-2026-40479
MEDIUM 5.4CVSS 3.1Kimai has Stored XSS via Incomplete HTML Attribute Escaping in Team Member Widget
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.
- Published
- 17 Apr 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-g82g-m9vx-vhjg
- Sources
- NVDJSONOSV GHSA-g82g-m9vx-vhjgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kimai | kimaicpe:2.3:a:kimai:kimai:*:*:*:*:*:*:*:* |
< 2.53.0 | 2.53.0 |
| OSV | Packagist | kimai/kimai | < 2.53.0 | 2.53.0 |
References
- https://github.com/kimai/kimai/releases/tag/2.53.0 · Product, Release Notes, WEB
- https://github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjg · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40479 · ADVISORY
- https://github.com/kimai/kimai/pull/2959 · WEB
- https://github.com/kimai/kimai · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 17 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 15 Apr 2026)