# CVE-2026-40479: Kimai: Stored XSS via Incomplete HTML Attribute Escaping in Team Member Widget

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T19:46:35.000Z
- Modified: 2026-06-17T10:45:21.180Z
- Also known as: GHSA-g82g-m9vx-vhjg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- kimai kimai: >= 1.16.3, < 2.53.0; before 2.53.0
- kimai/kimai (Packagist): before 2.53.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjg> (exploit, vendor-advisory, web)
- <https://github.com/kimai/kimai/releases/tag/2.53.0> (product, release-notes, 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)

## Sources

- CVE List: [CVE-2026-40479](https://www.cve.org/CVERecord?id=CVE-2026-40479), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-g82g-m9vx-vhjg](https://github.com/advisories/GHSA-g82g-m9vx-vhjg), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40479](https://nvd.nist.gov/vuln/detail/CVE-2026-40479), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-40479 · Whole record: https://cve.day/CVE-2026-40479.json · Rebuilt by cve.day 2026-11-25T22:59:18.977Z
