kimai/kimai
Affected
- introduced
0, fixed2.53.0(ecosystem)
Fixed versions
2.53.0
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-40479
Kimai has Stored XSS via Incomplete HTML Attribute Escaping in Team Member Widget
Summary
The client-side escapeForHtml() function in KimaiEscape.js, introduced in commit 89bfa82c (#2959) to fix a JavaScript XSS vulnerability, only escapes <, >, and & but does not escape " (double quote) or ' (single quote). When user-controlled data (profile alias) is placed in an HTML attribute context (title="__DISPLAY__") via the team member form prototype and rendered through innerHTML, the missing quote escaping allows HTML attribute injection, resulting in Stored XSS.
Details
Incomplete security patch. The escapeForHtml() function was meant to prevent XSS but missed quote characters, which are critical for HTML attribute context escaping.
Vulnerable code — assets/js/plugins/KimaiEscape.js:29-33:
const tagsToReplace = {
'&': '&',
'<': '<',
'>': '>',
// MISSING: '"': '"'
// MISSING: "'": '''
};
Affected code files:
assets/js/plugins/KimaiEscape.js:24-38 — incomplete escape functionassets/js/forms/KimaiTeamForm.js:77,86 — replacement + innerHTMLtemplates/macros/widgets.html.twig:126 — title="{{ tooltip }}" in avatar macrotemplates/form/blocks.html.twig:104 — {{ widgets.avatar('__INITIALS__', '__COLOR__', '__DISPLAY__') }}PoC
poc.zip
Please extract the uploaded compressed file before proceeding
<img width="751" height="155" alt="스크린샷 2026-04-07 오후 9 06 27" src="https://github.com/user-attachments/assets/c09a23fb-f60b-49dd-9018-8c723e35b4c4" />
Impact
Medium Basis: The source's own band: MODERATE
0, fixed 2.53.0 (ecosystem)2.53.0
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0