Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-40479 EUVD-2026-23575GHSA-g82g-m9vx-vhjg

Kimai: Stored XSS via Incomplete HTML Attribute Escaping in Team Member Widget

Published Apr 17, 2026 · Updated Apr 20, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
kimai kimai >= 1.16.3, < 2.53.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist kimai/kimai < 2.53.0 2.53.0 GHSA-g82g-m9vx-vhjg

References