Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40479

CVE-2026-40479: Kimai Time Tracking XSS Vulnerability

CVE-2026-40479 is a stored cross-site scripting flaw in Kimai that allows authenticated users to escalate privileges by injecting malicious code into profile aliases. This article covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40479 Overview

CVE-2026-40479 is a stored Cross-Site Scripting (XSS) vulnerability in Kimai, an open-source time tracking application. The vulnerability exists in the escapeForHtml() function within KimaiEscape.js, which fails to properly escape double quote and 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, enabling authenticated attackers to execute arbitrary JavaScript in the browsers of other users, including administrators.

Critical Impact

An authenticated user with basic 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 potential.

Affected Products

  • Kimai versions 1.16.3 through 2.52.0
  • Self-hosted Kimai installations
  • Kimai Docker deployments running vulnerable versions

Discovery Timeline

  • 2026-04-17 - CVE CVE-2026-40479 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40479

Vulnerability Analysis

This vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The root issue lies in the incomplete implementation of the escapeForHtml() function in KimaiEscape.js, which is designed to sanitize user input before rendering it in the browser.

The function fails to escape single quotes (') and double quotes ("), which are critical characters when user-controlled data is placed within HTML attribute contexts. When a user's profile alias is processed through the team member form prototype and subsequently rendered using innerHTML, the unescaped quote characters allow an attacker to break out of the attribute context and inject arbitrary HTML or JavaScript code.

The attack requires low privileges (ROLE_USER) and user interaction (an administrator must view the team form), but the scope is changed as the vulnerability affects users beyond the authenticated session of the attacker. The stored nature of this XSS means the malicious payload persists and executes each time the affected page is viewed.

Root Cause

The escapeForHtml() function in KimaiEscape.js implements incomplete character escaping. While it may handle characters like < and >, it neglects to escape quotation marks. In HTML attribute contexts, double and single quotes serve as attribute delimiters. By injecting these characters, an attacker can terminate the current attribute and introduce new attributes, including event handlers like onmouseover, onfocus, or onerror that execute JavaScript.

The vulnerable code path occurs when user-supplied alias data flows from the profile settings through the team member form prototype, ultimately being rendered via innerHTML without adequate sanitization.

Attack Vector

The attack is network-based and requires the attacker to have authenticated access with at least ROLE_USER privileges. The exploitation flow involves:

  1. An authenticated user modifies their profile alias to include a malicious payload containing quote characters and JavaScript event handlers
  2. The malicious alias is stored in the application database
  3. When an administrator navigates to the team management form, the application retrieves team member data including the attacker's alias
  4. The alias is processed through the vulnerable escapeForHtml() function, which fails to escape the quote characters
  5. The insufficiently sanitized data is rendered via innerHTML within an HTML attribute context
  6. The attacker's payload breaks out of the attribute and executes JavaScript in the administrator's browser session

This stored XSS can be leveraged for session hijacking, privilege escalation, data exfiltration, or performing actions on behalf of the administrator.

Detection Methods for CVE-2026-40479

Indicators of Compromise

  • Unusual or suspicious characters in user profile alias fields, particularly quote characters followed by event handlers (e.g., " onmouseover=, ' onclick=)
  • JavaScript keywords appearing in user profile data (e.g., alert, document.cookie, eval, XMLHttpRequest)
  • Unexpected administrative actions or user privilege changes that correlate with team form access
  • Browser console errors or unexpected script execution warnings when viewing team management pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Deploy Web Application Firewall (WAF) rules to identify XSS payloads in form submissions and profile updates
  • Monitor application logs for profile updates containing HTML special characters or JavaScript syntax
  • Use browser-based XSS auditors and security extensions during administrative sessions
  • Conduct regular code reviews focusing on user input handling and output encoding functions

Monitoring Recommendations

  • Enable detailed logging for all user profile modifications, capturing the full content of updated fields
  • Configure alerting for profile aliases exceeding typical length or containing special character patterns
  • Monitor for CSP violation reports which may indicate XSS exploitation attempts
  • Track administrative session anomalies following access to team management interfaces
  • Implement real-time monitoring of JavaScript execution contexts in sensitive application areas

How to Mitigate CVE-2026-40479

Immediate Actions Required

  • Upgrade Kimai to version 2.53.0 or later immediately
  • Audit existing user profile aliases for malicious content before and after upgrading
  • Review application access logs for any signs of exploitation prior to patching
  • Temporarily restrict access to team management features if immediate patching is not possible
  • Notify administrators to be cautious when accessing team forms until the patch is applied

Patch Information

The Kimai development team has addressed this vulnerability in version 2.53.0. The fix properly implements character escaping in the escapeForHtml() function to include double and single quote characters, preventing HTML attribute injection. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-g82g-m9vx-vhjg and the GitHub Release v2.53.0.

Workarounds

  • Implement server-side input validation to reject profile aliases containing quote characters or HTML special characters
  • Deploy a Web Application Firewall with rules to block XSS payloads in form submissions
  • Apply Content Security Policy headers with strict script-src directives to mitigate script injection impact
  • Restrict ROLE_USER privileges where possible to limit the attack surface
  • Consider using a reverse proxy to sanitize user input before it reaches the application
bash
# Example: Add Content Security Policy headers via Apache configuration
# Add to .htaccess or Apache virtual host configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self';"

# Example: Nginx CSP header configuration
# Add to server block in nginx.conf
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self';" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechKimai

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release v2.53.0

  • GitHub Security Advisory GHSA-g82g-m9vx-vhjg
  • Related CVEs
  • CVE-2019-25317: Kimai 2 Persistent XSS Vulnerability

  • CVE-2026-40486: Kimai Auth Bypass Vulnerability

  • CVE-2026-28685: Kimai Auth Bypass Vulnerability

  • CVE-2026-23626: Kimai Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English