Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. kimai/kimai
  4. ›
  5. CVE-2026-40479

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

April 15, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-g82g-m9vx-vhjg
  • github.com/kimai/kimai
  • github.com/kimai/kimai/pull/2959
  • github.com/kimai/kimai/releases/tag/2.53.0
  • github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjg
  • nvd.nist.gov/vuln/detail/CVE-2026-40479

Code Behaviors & Features

Detect and mitigate CVE-2026-40479 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.53.0

Fixed versions

  • 2.53.0

Solution

Upgrade to version 2.53.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/kimai/kimai/CVE-2026-40479.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 12 May 2026 00:22:34 +0000.