SecurityContext

CVE-2026-40479: Kimai - Stored XSS & Privilege Escalation

  • Cve: CVE-2026-40479
  • Name: Kimai - Stored XSS & Privilege Escalation
  • 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.
  • Impact: Authenticated users can execute JavaScript in administrator browsers, potentially leading to privilege escalation and full admin control.
  • Remediation: Update to version 2.53.0 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss, privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated with ROLE_USER privileges
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00215
  • Epss percentile: 0.11809
  • Assignee: [email protected]
  • Published at: 2026-04-17T23:16:12Z
  • Age in days: 221
  • Modified at: 2026-06-17T10:45:21Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40479
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjgnvd2026-04-17

References

UrlSourceTags
https://github.com/kimai/kimai/security/advisories/GHSA-g82g-m9vx-vhjgnvdExploit, Vendor Advisory
https://github.com/kimai/kimai/releases/tag/2.53.0nvdProduct, Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
kimai:kimai< 2.53.0nonvd/v1/products/kimai/kimai

Projects

RepositoryLink kindsIndexedUrl
kimai/kimaipackage, pull, releases, security_advisoryyes/v1/repositories/kimai/kimai

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-17
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 804
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports